CreatureController Class

MyDungeon

CreatureController Class

The Creature Controller component tracks all creatures on the map and executes their AI during their turn
Inheritance Hierarchy
SystemObject  Object
    Component
      Behaviour
        MonoBehaviour
          MyDungeon.ControllersCreatureController

Namespace:  MyDungeon.Controllers
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class CreatureController : MonoBehaviour

The CreatureController type exposes the following members.

Constructors
  NameDescription
Public methodCreatureController
Initializes a new instance of the CreatureController class
Top
Methods
  NameDescription
Protected methodAwake
Initializes the creatures list
Protected methodMoveCreatures
Executes each creature's AI via their MoveCreature method
Protected methodUpdate
Checks that it is not currently the player's turn then executes the MoveCreatures coroutine
Top
Fields
  NameDescription
Protected fieldCreaturesMoving
Indicates whether or not it is currently the creatures' turn
Top
Extension Methods
  NameDescription
Public Extension MethodInvoke
Invoke using a delegate
(Defined by MonoBehaviourExtensions.)
Top
See Also