Creature Class

MyDungeon

Creature Class

Base class for entities other than the player in the dungoen
Inheritance Hierarchy
SystemObject  Object
    Component
      Behaviour
        MonoBehaviour
          MyDungeon.EntitiesMovingDungeonObject
            MyDungeon.EntitiesCreature

Namespace:  MyDungeon.Entities
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public abstract class Creature : MovingDungeonObject

The Creature type exposes the following members.

Constructors
  NameDescription
Protected methodCreature
Initializes a new instance of the Creature class
Top
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
Fields
  NameDescription
Public fieldBlockingLayer
Layer used for collision checking in dungeons
(Inherited from MovingDungeonObject.)
Protected fieldBoxCollider (Inherited from MovingDungeonObject.)
Protected fieldCurHealth
Entity's current health
(Inherited from MovingDungeonObject.)
Public fieldDisplayName
Name of the entity
(Inherited from MovingDungeonObject.)
Protected fieldInverseMoveTime
Inverse of MoveTime used for SmoothMovement
(Inherited from MovingDungeonObject.)
Public fieldMaxHealth
Entity's maximum HP value
(Inherited from MovingDungeonObject.)
Public fieldMoveTime
How long the entity's turn lasts
(Inherited from MovingDungeonObject.)
Protected fieldMoving
Entity's current moving state
(Inherited from MovingDungeonObject.)
Protected fieldPosX
Entity's current X position
(Inherited from MovingDungeonObject.)
Protected fieldPosY
Entity's current Y position
(Inherited from MovingDungeonObject.)
Protected fieldRb2D (Inherited from MovingDungeonObject.)
Public fieldStrength
Base damage value attacks will do
(Inherited from MovingDungeonObject.)
Top
Extension Methods
  NameDescription
Public Extension MethodInvoke
Invoke using a delegate
(Defined by MonoBehaviourExtensions.)
Top
See Also