/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
//pickup something, figure out what it is, and add it to our inventory. public void InventoryPickup(Game1.power pickup, int amountPickedUp) { switch (pickup) { case Game1.power.fire: loc1.addCharge(amountPickedUp); break; case Game1.power.ice: loc2.addCharge(amountPickedUp); break; case Game1.power.wind: loc3.addCharge(amountPickedUp); break; case Game1.power.shock: loc4.addCharge(amountPickedUp); break; } }
public void pickup(Game1.power pickup, int amountPickedUp) { this.playerInventory.InventoryPickup(pickup, amountPickedUp); }
/** * Default constructor */ public InventoryLocation(Game1.power locationPower, int maxPower) { this.locationPower = locationPower; this.charge = 0; this.maxPower = maxPower; }