public ItemPickup(Point p, Tile t, itemPickupType i, int pointValue = 1) { this.p = p; this.t = t; this.i = i; this.pointValue = pointValue; collect = false; }
public ItemPickup(int x, int y, Tile t, itemPickupType i, int pointValue = 1) { p = new Point(x, y); this.t = t; this.i = i; this.pointValue = pointValue; collect = false; }
public void CreateItem(Point p, itemPickupType i = itemPickupType.coin) { items.Add(new ItemPickup(p, Tile.COIN, i)); }