public Box AddBox(Box box, bool sendToClient) { m_tempBox.Add(box); AddPhysicalObj(box, sendToClient); return box; }
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); }
public virtual void PickBox(Box box) { box.UserID = Id; box.Die(); if (m_syncAtTime) { m_game.SendGamePickBox(this, box.Id, 0, ""); } }
override public void PickBox(Box box) { m_tempBoxes.Add(box); base.PickBox(box); }
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; }