![]() |
Dawn of Light - Class documentation 2900
This is the Dawn of Light project
|
This class is the base of all arteficial intelligence in game objects. More...
Public Member Functions | |
ABrain () | |
Constructs a new brain for a body. | |
override string | ToString () |
Returns the string representation of the ABrain. | |
virtual bool | Start () |
Starts the brain thinking. | |
virtual bool | Stop () |
Stops the brain thinking. | |
virtual void | Notify (DOLEvent e, object sender, EventArgs args) |
Receives all messages of the body. | |
abstract void | Think () |
This method is called whenever the brain does some thinking. | |
Protected Member Functions | |
virtual int | BrainTimerCallback (RegionTimer callingTimer) |
The callback timer for the brain ticks. | |
Protected Attributes | |
GameNPC | m_body |
The body of this brain. | |
Properties | |
GameNPC | Body [get, set] |
Gets/sets the body of this brain. | |
virtual bool | IsActive [get] |
Returns weather this brain is active or not. | |
virtual int | ThinkInterval [get, set] |
The interval at which the brain will fire, in milliseconds. | |
virtual int | CastInterval [get, set] |
How fast can this brain cast, in milliseconds. |
This class is the base of all arteficial intelligence in game objects.
DOL.AI.ABrain.ABrain | ( | ) |
Constructs a new brain for a body.
virtual int DOL.AI.ABrain.BrainTimerCallback | ( | RegionTimer | callingTimer | ) | [protected, virtual] |
The callback timer for the brain ticks.
callingTimer | the calling timer |
Reimplemented in DOL.AI.APlayerVicinityBrain.
virtual void DOL.AI.ABrain.Notify | ( | DOLEvent | e, |
object | sender, | ||
EventArgs | args | ||
) | [virtual] |
Receives all messages of the body.
e | The event received |
sender | The event sender |
args | The event arguments |
Reimplemented in DOL.AI.Brain.AggressiveBrain, DOL.AI.Brain.ScoutMobBrain, DOL.AI.Brain.StandardMobBrain, and DOL.AI.Brain.TheurgistPetBrain.
virtual bool DOL.AI.ABrain.Start | ( | ) | [virtual] |
Starts the brain thinking.
Reimplemented in DOL.AI.APlayerVicinityBrain, DOL.AI.Brain.BlankBrain, DOL.AI.Brain.ControlledNpcBrain, DOL.AI.Brain.RoundsBrain, and DOL.AI.Brain.TitanBrain.
virtual bool DOL.AI.ABrain.Stop | ( | ) | [virtual] |
Stops the brain thinking.
Reimplemented in DOL.AI.Brain.TurretBrain, DOL.AI.Brain.BDPetBrain, DOL.AI.Brain.BlankBrain, DOL.AI.Brain.ControlledNpcBrain, DOL.AI.Brain.StandardMobBrain, and DOL.AI.Brain.TitanBrain.
abstract void DOL.AI.ABrain.Think | ( | ) | [pure virtual] |
This method is called whenever the brain does some thinking.
Implemented in DOL.AI.Brain.BomberBrain, DOL.AI.Brain.TurretBrain, DOL.AI.Brain.BDPetBrain, DOL.AI.Brain.BlankBrain, DOL.AI.Brain.ControlledNpcBrain, DOL.AI.Brain.DragonBrain, DOL.AI.Brain.CasterBrain, DOL.AI.Brain.HealerBrain, DOL.AI.Brain.KeepGuardBrain, DOL.AI.Brain.LordBrain, DOL.AI.Brain.NecromancerPetBrain, DOL.AI.Brain.NoveltyPetBrain, DOL.AI.Brain.AggressiveBrain, DOL.AI.Brain.ProcPetBrain, DOL.AI.Brain.RetrieverMobBrain, DOL.AI.Brain.ScoutMobBrain, DOL.AI.Brain.StandardMobBrain, DOL.AI.Brain.TheurgistPetBrain, DOL.AI.Brain.FearBrain, and DOL.AI.Brain.TitanBrain.
override string DOL.AI.ABrain.ToString | ( | ) |
Returns the string representation of the ABrain.
Reimplemented in DOL.AI.APlayerVicinityBrain, and DOL.AI.Brain.StandardMobBrain.
GameNPC DOL.AI.ABrain.m_body [protected] |
The body of this brain.
GameNPC DOL.AI.ABrain.Body [get, set] |
Gets/sets the body of this brain.
virtual int DOL.AI.ABrain.CastInterval [get, set] |
How fast can this brain cast, in milliseconds.
Reimplemented in DOL.AI.Brain.NecromancerPetBrain.
virtual bool DOL.AI.ABrain.IsActive [get] |
Returns weather this brain is active or not.
virtual int DOL.AI.ABrain.ThinkInterval [get, set] |
The interval at which the brain will fire, in milliseconds.
Reimplemented in DOL.AI.Brain.BomberBrain, DOL.AI.Brain.TurretBrain, DOL.AI.Brain.BDPetBrain, DOL.AI.Brain.ControlledNpcBrain, DOL.AI.Brain.KeepGuardBrain, DOL.AI.Brain.NecromancerPetBrain, DOL.AI.Brain.NoveltyPetBrain, DOL.AI.Brain.AggressiveBrain, DOL.AI.Brain.ProcPetBrain, DOL.AI.Brain.StandardMobBrain, DOL.AI.Brain.TheurgistPetBrain, and DOL.AI.Brain.TitanBrain.