MyDungeon Documentation
![]() | PlayerDungeonController Class |
Base class for controller for the Player in the Dungeon scenes

SystemObject Object
Component
Behaviour
MonoBehaviour
MyDungeon.EntitiesMovingDungeonObject
MyDungeon.EntitiesPlayerDungeon
MyDungeon.ControllersPlayerDungeonController
Component
Behaviour
MonoBehaviour
MyDungeon.EntitiesMovingDungeonObject
MyDungeon.EntitiesPlayerDungeon
MyDungeon.ControllersPlayerDungeonController
Namespace: MyDungeon.Controllers
Assembly: Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0

C#
public abstract class PlayerDungeonController : PlayerDungeon
The PlayerDungeonController type exposes the following members.

Name | Description | |
---|---|---|
![]() | PlayerDungeonController | Initializes a new instance of the PlayerDungeonController class |

Name | Description | |
---|---|---|
![]() | Attack | |
![]() | AttemptMove |
Attempts to move the player and ends the player's turn if they moved
(Overrides PlayerDungeonAttemptMove(Int32, Int32).) |
![]() | CheckHit |
Checks if entity is blocked by an object on the blocking layer in a desired direction
(Inherited from MovingDungeonObject.) |
![]() | CheckIfGameOver |
Check if player is out of HP and if so disable the PlayerDungeonController
|
![]() | LoseHealth |
Reduce player's current health and executes UpdateHealth
(Overrides MovingDungeonObjectLoseHealth(Int32).) |
![]() | Move |
Checks if the entity can move in the provided direction
(Inherited from MovingDungeonObject.) |
![]() | RecoverHealth |
Increase player's current health and executes UpdateHealth
(Overrides MovingDungeonObjectRecoverHealth(Int32).) |
![]() | SmoothMovement |
Moves entity from their current position to their desired position with a smooth animation
(Inherited from MovingDungeonObject.) |
![]() | Start |
Sets the player's current health
(Overrides MovingDungeonObjectStart.) |
![]() | UpdateHealth |
Ensure health does not go above MaxHealth or below 0 then executes CheckIfGameOver
|
![]() | WaitForTurnEnd |
Used to ensure a turn does not end early
(Inherited from MovingDungeonObject.) |

Name | Description | |
---|---|---|
![]() | BlockingLayer |
Layer used for collision checking in dungeons
(Inherited from MovingDungeonObject.) |
![]() | BoxCollider | (Inherited from MovingDungeonObject.) |
![]() | CurHealth |
Entity's current health
(Inherited from MovingDungeonObject.) |
![]() | DisplayName |
Name of the entity
(Inherited from MovingDungeonObject.) |
![]() | InverseMoveTime |
Inverse of MoveTime used for SmoothMovement
(Inherited from MovingDungeonObject.) |
![]() | MaxHealth |
Entity's maximum HP value
(Inherited from MovingDungeonObject.) |
![]() | MoveTime |
How long the entity's turn lasts
(Inherited from MovingDungeonObject.) |
![]() | Moving |
Entity's current moving state
(Inherited from MovingDungeonObject.) |
![]() | PosX |
Entity's current X position
(Inherited from MovingDungeonObject.) |
![]() | PosY |
Entity's current Y position
(Inherited from MovingDungeonObject.) |
![]() | Rb2D | (Inherited from MovingDungeonObject.) |
![]() | Strength |
Base damage value attacks will do
(Inherited from MovingDungeonObject.) |

Name | Description | |
---|---|---|
![]() | Invoke |
Invoke using a delegate
(Defined by MonoBehaviourExtensions.) |
