Esempio n. 1
0
 public Box AddBox(Box box, bool sendToClient)
 {
     m_tempBox.Add(box);
     AddPhysicalObj(box, sendToClient);
     return box;
 }
Esempio n. 2
0
 public Box AddBox(ItemInfo item, Point pos, bool sendToClient)
 {
     Box box = new Box(PhysicalId++, "1", item);
     box.SetXY(pos);
     AddPhysicalObj(box, sendToClient);
     return AddBox(box, sendToClient);
 }
Esempio n. 3
0
        public virtual void PickBox(Box box)
        {
            box.UserID = Id;
            box.Die();

            if (m_syncAtTime)
            {
                m_game.SendGamePickBox(this, box.Id, 0, "");
            }
        }
Esempio n. 4
0
        override public void PickBox(Box box)
        {
            m_tempBoxes.Add(box);

            base.PickBox(box);
        }
Esempio n. 5
0
        public Box CreateBox(int x, int y, string model, ItemInfo item)
        {
            Box box = new Box(PhysicalId++, model, item);
            box.SetXY(x, y);

            m_map.AddPhysical(box);
            AddBox(box, true);

            return box;
        }