コード例 #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
ファイル: Level.cs プロジェクト: jdoiron94/Outside-The-Box
 /// <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();
 }
コード例 #5
0
 /// <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
ファイル: HPLaser.cs プロジェクト: jdoiron94/Outside-The-Box
 /// <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);
     }
 }
コード例 #8
0
 /// <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);
 }