Esempio n. 1
0
 public override void Buy(Robot robot)
 {
     robot.ShopList.Remove(this);
     robot.Coins -= Price;
     ApplyUpgrade(robot);
 }
Esempio n. 2
0
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

        public override void PickUp(Robot robot)
        {
            robot.Coins += COIN_VALUE;
        }
Esempio n. 3
0
 public override void ApplyUpgrade(Robot robot)
 {
     robot.MaxSpeed += SPEED_BONUS;
     robot.Speed += SPEED_BONUS;
 }
Esempio n. 4
0
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

        /// <summary>
        /// Allows the player to get the item.
        /// </summary>
        public abstract void PickUp(Robot robot);
Esempio n. 5
0
 public override void ApplyUpgrade(Robot robot)
 {
     robot.BatteryBonus += TIME_BONUS;
 }
Esempio n. 6
0
 public abstract void Buy(Robot robot);
Esempio n. 7
0
 /// <summary>
 /// apply the Upgrade to the Robot
 /// </summary>
 /// <param name="robot">The Robot who will receive the upgrade</param>
 public abstract void ApplyUpgrade(Robot robot);
Esempio n. 8
0
 public override void ApplyUpgrade(Robot robot)
 {
     robot.MaxHealth += HEALTH_BONUS;
 }
Esempio n. 9
0
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

        public override void PickUp(Robot robot)
        {
            
        }
Esempio n. 10
0
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

        public override void PickUp(Robot robot)
        {
            LevelTimer.CurrentTime += TIME_BONUS_VALUE;
        }