示例#1
0
 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;
 }
示例#2
0
 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;
 }
示例#3
0
 public void CreateItem(Point p, itemPickupType i = itemPickupType.coin)
 {
     items.Add(new ItemPickup(p, Tile.COIN, i));
 }