/// <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); } }
/// <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> /// 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); }