OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Protected Attributes | Properties | List of all members
pCampBot.AbstractBehaviour Class Referenceabstract
Inheritance diagram for pCampBot.AbstractBehaviour:
Inheritance graph
[legend]
Collaboration diagram for pCampBot.AbstractBehaviour:
Collaboration graph
[legend]

Public Member Functions

abstract void Action ()
 Action to take when this behaviour is invoked. More...
 
virtual void Interrupt ()
 Interrupt the behaviour. More...
 
virtual void Initialize (Bot bot)
 Initialize the behaviour for this bot. More...
 
virtual void Close ()
 Close down this behaviour. More...
 

Protected Attributes

AutoResetEvent m_interruptEvent = new AutoResetEvent(false)
 

Properties

string AbbreviatedName [get, set]
 Abbreviated name of this behaviour. More...
 
string Name [get, set]
 
Bot Bot [get, set]
 
- Properties inherited from pCampBot.Interfaces.IBehaviour
string AbbreviatedName [get]
 Abbreviated name of this behaviour. More...
 
string Name [get]
 Name of this behaviour. More...
 

Detailed Description

Definition at line 37 of file AbstractBehaviour.cs.

Member Function Documentation

abstract void pCampBot.AbstractBehaviour.Action ( )
pure virtual
virtual void pCampBot.AbstractBehaviour.Close ( )
inlinevirtual

Close down this behaviour.

This is triggered if a behaviour is removed via explicit command and when a bot is disconnected

Implements pCampBot.Interfaces.IBehaviour.

Reimplemented in pCampBot.PhysicsBehaviour.

Definition at line 59 of file AbstractBehaviour.cs.

Here is the call graph for this function:

virtual void pCampBot.AbstractBehaviour.Initialize ( Bot  bot)
inlinevirtual

Initialize the behaviour for this bot.

This must be invoked before Action() is called.

Parameters
bot

Implements pCampBot.Interfaces.IBehaviour.

Definition at line 54 of file AbstractBehaviour.cs.

virtual void pCampBot.AbstractBehaviour.Interrupt ( )
inlinevirtual

Interrupt the behaviour.

This should cause the current Action call() to terminate if this is active.

Implements pCampBot.Interfaces.IBehaviour.

Reimplemented in pCampBot.InventoryDownloadBehaviour, and pCampBot.NoneBehaviour.

Definition at line 50 of file AbstractBehaviour.cs.

Here is the caller graph for this function:

Member Data Documentation

AutoResetEvent pCampBot.AbstractBehaviour.m_interruptEvent = new AutoResetEvent(false)
protected

Definition at line 52 of file AbstractBehaviour.cs.

Property Documentation

string pCampBot.AbstractBehaviour.AbbreviatedName
getset

Abbreviated name of this behaviour.

Definition at line 42 of file AbstractBehaviour.cs.

Bot pCampBot.AbstractBehaviour.Bot
getset

Definition at line 46 of file AbstractBehaviour.cs.

string pCampBot.AbstractBehaviour.Name
getset

Definition at line 44 of file AbstractBehaviour.cs.


The documentation for this class was generated from the following file: