Dawn of Light - Class documentation 2900
This is the Dawn of Light project
DOL.AI.ABrain Class Reference

This class is the base of all arteficial intelligence in game objects. More...

Inheritance diagram for DOL.AI.ABrain:
DOL.AI.APlayerVicinityBrain DOL.AI.Brain.BlankBrain DOL.AI.Brain.NoveltyPetBrain DOL.AI.Brain.AggressiveBrain DOL.AI.Brain.StandardMobBrain DOL.AI.Brain.SocialBrain DOL.AI.Brain.ControlledNpcBrain DOL.AI.Brain.DragonBrain DOL.AI.Brain.FearBrain DOL.AI.Brain.FriendBrain DOL.AI.Brain.GuardBrain DOL.AI.Brain.KeepGuardBrain DOL.AI.Brain.ProcPetBrain DOL.AI.Brain.RetrieverMobBrain DOL.AI.Brain.RoundsBrain DOL.AI.Brain.ScoutMobBrain DOL.AI.Brain.TheurgistPetBrain

List of all members.

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.

Detailed Description

This class is the base of all arteficial intelligence in game objects.


Constructor & Destructor Documentation

DOL.AI.ABrain.ABrain ( )

Constructs a new brain for a body.


Member Function Documentation

virtual int DOL.AI.ABrain.BrainTimerCallback ( RegionTimer  callingTimer) [protected, virtual]

The callback timer for the brain ticks.

Parameters:
callingTimerthe calling timer
Returns:
the new tick intervall

Reimplemented in DOL.AI.APlayerVicinityBrain.

virtual void DOL.AI.ABrain.Notify ( DOLEvent  e,
object  sender,
EventArgs  args 
) [virtual]

Receives all messages of the body.

Parameters:
eThe event received
senderThe event sender
argsThe 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]
virtual bool DOL.AI.ABrain.Stop ( ) [virtual]
override string DOL.AI.ABrain.ToString ( )

Returns the string representation of the ABrain.

Returns:

Reimplemented in DOL.AI.APlayerVicinityBrain, and DOL.AI.Brain.StandardMobBrain.


Member Data Documentation

The body of this brain.


Property Documentation

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.


The documentation for this class was generated from the following file:
All Classes Namespaces Functions Variables Enumerations Properties Events