MyDungeon Documentation
![]() | MovingDungeonObject Class |
Base class for objects that move in the Dungeon scenes

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

C#
public abstract class MovingDungeonObject : MonoBehaviour
The MovingDungeonObject type exposes the following members.

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

Name | Description | |
---|---|---|
![]() | CheckHit |
Checks if entity is blocked by an object on the blocking layer in a desired direction
|
![]() | LoseHealth |
Subtracts health from the entity
|
![]() | Move |
Checks if the entity can move in the provided direction
|
![]() | RecoverHealth |
Adds health to the entity
|
![]() | SmoothMovement |
Moves entity from their current position to their desired position with a smooth animation
|
![]() | Start |
Initializes the 2DPhysics components, the entity's position, and animation movement multiplier
|
![]() | WaitForTurnEnd |
Used to ensure a turn does not end early
|

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

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