Exemplo n.º 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
Exemplo n.º 2
0
 //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;
         }
 }
Exemplo n.º 3
0
 public void pickup(Game1.power pickup, int amountPickedUp)
 {
     this.playerInventory.InventoryPickup(pickup, amountPickedUp);
 }
Exemplo n.º 4
0
 /**
  * Default constructor
  */
 public InventoryLocation(Game1.power locationPower, int maxPower)
 {
     this.locationPower = locationPower;
     this.charge = 0;
     this.maxPower = maxPower;
 }