MyDungeon Documentation
PlayerDungeon Class |
Base class for the Player in Dungeon scenes
Inheritance Hierarchy
SystemObject Object
Component
Behaviour
MonoBehaviour
MyDungeon.EntitiesMovingDungeonObject
MyDungeon.EntitiesPlayerDungeon
MyDungeon.ControllersPlayerDungeonController
Component
Behaviour
MonoBehaviour
MyDungeon.EntitiesMovingDungeonObject
MyDungeon.EntitiesPlayerDungeon
MyDungeon.ControllersPlayerDungeonController
Namespace: MyDungeon.Entities
Assembly: Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public abstract class PlayerDungeon : MovingDungeonObject
The PlayerDungeon type exposes the following members.
Constructors
Name | Description | |
---|---|---|
PlayerDungeon | Initializes a new instance of the PlayerDungeon class |
Methods
Name | Description | |
---|---|---|
AttemptMove | ||
CheckHit |
Checks if entity is blocked by an object on the blocking layer in a desired direction
(Inherited from MovingDungeonObject.) | |
LoseHealth |
Subtracts health from the entity
(Inherited from MovingDungeonObject.) | |
Move |
Checks if the entity can move in the provided direction
(Inherited from MovingDungeonObject.) | |
RecoverHealth |
Adds health to the entity
(Inherited from MovingDungeonObject.) | |
SmoothMovement |
Moves entity from their current position to their desired position with a smooth animation
(Inherited from MovingDungeonObject.) | |
Start |
Initializes the 2DPhysics components, the entity's position, and animation movement multiplier
(Inherited from MovingDungeonObject.) | |
WaitForTurnEnd |
Used to ensure a turn does not end early
(Inherited from MovingDungeonObject.) |
Fields
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.) |
Extension Methods
Name | Description | |
---|---|---|
Invoke |
Invoke using a delegate
(Defined by MonoBehaviourExtensions.) |
See Also