PlayerDungeonController Methods

MyDungeon

PlayerDungeonController Methods

The PlayerDungeonController type exposes the following members.

Methods
  NameDescription
Protected methodAttack
Protected methodAttemptMove
Attempts to move the player and ends the player's turn if they moved
(Overrides PlayerDungeonAttemptMove(Int32, Int32).)
Protected methodCheckHit
Checks if entity is blocked by an object on the blocking layer in a desired direction
(Inherited from MovingDungeonObject.)
Protected methodCheckIfGameOver
Check if player is out of HP and if so disable the PlayerDungeonController
Public methodLoseHealth
Reduce player's current health and executes UpdateHealth
(Overrides MovingDungeonObjectLoseHealth(Int32).)
Protected methodMove
Checks if the entity can move in the provided direction
(Inherited from MovingDungeonObject.)
Public methodRecoverHealth
Increase player's current health and executes UpdateHealth
(Overrides MovingDungeonObjectRecoverHealth(Int32).)
Protected methodSmoothMovement
Moves entity from their current position to their desired position with a smooth animation
(Inherited from MovingDungeonObject.)
Protected methodStart
Sets the player's current health
(Overrides MovingDungeonObjectStart.)
Protected methodUpdateHealth
Ensure health does not go above MaxHealth or below 0 then executes CheckIfGameOver
Protected methodWaitForTurnEnd
Used to ensure a turn does not end early
(Inherited from MovingDungeonObject.)
Top
Extension Methods
  NameDescription
Public Extension MethodInvoke
Invoke using a delegate
(Defined by MonoBehaviourExtensions.)
Top
See Also