public Box(int id, MapGoodsInfo items) : base(id) { _userID = 0; _items = items; m_rect = new Rectangle(-15, -15, 30, 30); _liveCount = 8; }
public int AddFallGoods(Point p, MapGoodsInfo itemID) { Box box = new Box(_fallItemID.Count, itemID); box.SetXY(p); _currentMap.AddPhysical(box); _fallItemID.Add(box); TempBox.Add(box); Arks++; return 0; }
public Box AddBox(MapGoodsInfo item,Point pos) { Box box = new Box(m_tempBoxId ++, item); box.SetXY(pos); m_map.AddPhysical(box); m_tempBox.Add(box); return box; }