Creature Methods

MyDungeon

Creature Methods

The Creature type exposes the following members.

Methods
  NameDescription
Public methodAddCreatureToList
Adds a creature to the list
Protected methodAttemptMoveT
Protected methodCheckHit
Checks if entity is blocked by an object on the blocking layer in a desired direction
(Inherited from MovingDungeonObject.)
Public methodLoseHealth
Subtracts health from the entity
(Inherited from MovingDungeonObject.)
Protected methodMove
Checks if the entity can move in the provided direction
(Inherited from MovingDungeonObject.)
Public methodMoveCreature
Protected methodOnCantMoveT
Public methodRecoverHealth
Adds health to the entity
(Inherited from MovingDungeonObject.)
Public methodRemoveCreatureFromList
Removes a creature from the list
Protected methodSmoothMovement
Moves entity from their current position to their desired position with a smooth animation
(Inherited from MovingDungeonObject.)
Protected methodStart
Add the creature to the creature list and sets its health value
(Overrides MovingDungeonObjectStart.)
Protected methodUpdate
Checks if a creature has lost all its HP and removes it from the list if so
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