示例#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);
     }
 }
示例#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);
     }
 }
示例#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();
 }
示例#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);
 }
示例#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);
     }
 }
示例#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);
 }