Exemplo n.º 1
0
        public Item(Game gameInstance)
        {
            Frozen = DateTime.Now;

            this.gameInstance = gameInstance;
            if (gameInstance != null)
            {
                this.SpriteModel = new SpriteModel(gameInstance, 4);
                UpdateSpriteTexture();
                this.IdleAnimation = true;
            }
        }
Exemplo n.º 2
0
        public Player(NetConnection netConn, Game gameInstance)
        {
            this.gameInstance = gameInstance;
            this.NetConn = netConn;
            this.ID = Player.GetUniqueId();

            if (netConn != null)
                this.IP = netConn.RemoteEndpoint.Address.ToString();

            if (gameInstance != null)
            {
                this.SpriteModel = new SpriteModel(gameInstance, 4);
                UpdateSpriteTexture();
                this.IdleAnimation = true;
            }
        }
Exemplo n.º 3
0
        public Player(NetConnection netConn, Game gameInstance)
        {
            this.gameInstance = gameInstance;
            this.NetConn      = netConn;
            this.ID           = Player.GetUniqueId();

            if (netConn != null)
            {
                this.IP = netConn.RemoteEndPoint.Address.ToString();
            }

            if (gameInstance != null)
            {
                this.SpriteModel = new SpriteModel(gameInstance, 4);
                UpdateSpriteTexture();
                this.IdleAnimation = true;
            }
        }
Exemplo n.º 4
0
        public Item(Game gameInstance, ItemType iType)
        {
            Content = new int[20];

            Frozen = DateTime.Now;

            Type = iType;
            this.gameInstance = gameInstance;
            if (gameInstance != null)
            {
                this.SpriteModel = new SpriteModel(gameInstance, 4);
                UpdateSpriteTexture();
                this.IdleAnimation = true;
            }
            else
            {
                Content[5] = 1;
            }
        }