Example #1
0
 /// <summary>
 /// Handles updating of the laser
 /// </summary>
 /// <param name="inputManager">The InputManager</param>
 public override void update(InputManager inputManager)
 {
     if (isActivated())
     {
         inputManager.getPlayerManager().damagePlayer(damage);
     }
 }
Example #2
0
 /// <summary>
 /// Updates the mana laser
 /// </summary>
 /// <param name="inputManager">The InputManager</param>
 public override void update(InputManager inputManager)
 {
     if (isActivated())
     {
         inputManager.getPlayerManager().depleteMana(50);
     }
 }
Example #3
0
 /// <summary>
 /// Sets the input manager and player manager for the level
 /// </summary>
 /// <param name="inputManager">The InputManager instance to be set for the level</param>
 public void setInputManager(InputManager inputManager)
 {
     this.inputManager = inputManager;
     collisionManager = inputManager.getCollisionManager();
     playerManager = inputManager.getPlayerManager();
 }
Example #4
0
 /// <summary>
 /// Sets the input manager and player manager for the level
 /// </summary>
 /// <param name="inputManager">The InputManager instance to be set for the level</param>
 public void setInputManager(InputManager inputManager)
 {
     this.inputManager = inputManager;
     collisionManager  = inputManager.getCollisionManager();
     playerManager     = inputManager.getPlayerManager();
 }
 /// <summary>
 /// Updates the limitation field
 /// </summary>
 /// <param name="inputManager">The InputManager</param>
 public override void update(InputManager inputManager)
 {
     inputManager.getPlayerManager().setHealthLimit(false);
     inputManager.getPlayerManager().setManaLimit(false);
 }
Example #6
0
 /// <summary>
 /// Handles updating of the laser
 /// </summary>
 /// <param name="inputManager">The InputManager</param>
 public override void update(InputManager inputManager)
 {
     if (isActivated()) {
         inputManager.getPlayerManager().damagePlayer(damage);
     }
 }
Example #7
0
 /// <summary>
 /// Updates the mana laser
 /// </summary>
 /// <param name="inputManager">The InputManager</param>
 public override void update(InputManager inputManager)
 {
     if (isActivated()) {
         inputManager.getPlayerManager().depleteMana(50);
     }
 }
 /// <summary>
 /// Updates the limitation field
 /// </summary>
 /// <param name="inputManager">The InputManager</param>
 public override void update(InputManager inputManager)
 {
     inputManager.getPlayerManager().setHealthLimit(false);
     inputManager.getPlayerManager().setManaLimit(false);
 }