Esempio n. 1
0
        public void TransferSlotFrom(GameSlot src)
        {
            Child    = src.Child;
            Contents = src.Contents;
            src.EmptySlot();

            Child.SetPosition(PyroGameManager.GetSlotLocation(X, Y));
        }
Esempio n. 2
0
 public void Move(int xDif, int yDif)
 {
     position.X += xDif;
     position.Y += yDif;
     if (Child != null)
     {
         Child.SetPosition(PyroGameManager.GetSlotLocation(position));
     }
 }
Esempio n. 3
0
        public void SetPosition(int x, int y)
        {
            position.X = x;
            position.Y = y;

            if (Child != null)
            {
                Child.SetPosition(PyroGameManager.GetSlotLocation(position));
            }
        }