Tactics: Western Philosophers Vs. Musicians  0.12
A turn-based tactical game combining rules and gameplay elements inspired by Final Fantasy Tactics and the Mayfair Exponential Game System. Unlike most games of this type, motion is in full, grid-less 3D.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
OpenSkyNet::Core::AIWrapperObject Class Referenceabstract

#include <IAIWrapperObject.h>

Inheritance diagram for OpenSkyNet::Core::AIWrapperObject:
OpenSkyNet::Core::Object OpenSkyNet::AI::Wrapper Tactics3D::NPC

Public Member Functions

virtual void init (AI::LOGIC_IDS logicId_, AI::FSM_IDS fSMId_, AI::State *state_)
 
virtual void init (AI::LOGIC_IDS logicId_, AI::FSM_IDS fSMId_, AI::State *state_, AI::KB *kB_)
 
virtual bool performLogic (bool includeGlobalKB_=false)
 returns true if state changed, false otherwise More...
 
virtual const AI::StategetCurrentState () const
 
virtual AI::KBgetKB ()
 
virtual void doAction ()=0
 
- Public Member Functions inherited from OpenSkyNet::Core::Object
 Object ()
 
virtual ~Object ()
 
virtual Math::Point getPos () const =0
 
virtual void getPos (Math::Point<> &pos_) const =0
 
virtual void setPos (const Math::Point<> &pos_)=0
 
virtual bool getHasPosChanged () const =0
 
virtual void setHasPosChanged (bool val_)=0
 
virtual Math::Matrix3x3 getRot () const =0
 
virtual void getRot (Math::Matrix3x3 &rot_) const =0
 
virtual void setRot (const Math::Matrix3x3 &rot_)=0
 
virtual bool getHasRotChanged () const =0
 
virtual void setHasRotChanged (bool val_)=0
 
virtual Math::Point getVel () const =0
 
virtual void getVel (Math::Point<> &vel_) const =0
 
virtual void setVel (const Math::Point<> &vel_)=0
 
virtual bool getHasVelChanged () const =0
 
virtual void setHasVelChanged (bool val_)=0
 
virtual Math::Point getAngVel () const =0
 
virtual void getAngVel (Math::Point<> &angVel_) const =0
 
virtual void setAngVel (const Math::Point<> &angVel_)=0
 
virtual bool getHasAngVelChanged () const =0
 
virtual void setHasAngVelChanged (bool val_)=0
 
virtual const PhysicalObjectgetPhysicalObject () const =0
 
virtual PhysicalObjectgetPhysicalObject ()=0
 
virtual const VisibleObjectgetVisibleObject () const =0
 
virtual VisibleObjectgetVisibleObject ()=0
 
virtual const std::string & getName () const =0
 
virtual void setName (const std::string &name_)=0
 

Static Public Member Functions

static AI::FSM ** getGlobalFSMs ()
 

Detailed Description

An Object with artificial intelligence.

Member Function Documentation

virtual void OpenSkyNet::Core::AIWrapperObject::doAction ( )
pure virtual

AI method to be implemented by derived class.

Reimplemented from OpenSkyNet::AI::Wrapper.

Implemented in Tactics3D::NPC.

virtual const AI::State* OpenSkyNet::Core::AIWrapperObject::getCurrentState ( ) const
inlinevirtual

get the current state of the current finite state machine

Reimplemented from OpenSkyNet::AI::Wrapper.

static AI::FSM** OpenSkyNet::Core::AIWrapperObject::getGlobalFSMs ( )
inlinestatic
virtual AI::KB* OpenSkyNet::Core::AIWrapperObject::getKB ( )
inlinevirtual

get the local KB used by this object

Reimplemented from OpenSkyNet::AI::Wrapper.

virtual void OpenSkyNet::Core::AIWrapperObject::init ( AI::LOGIC_IDS  logicId_,
AI::FSM_IDS  fSMId_,
AI::State state_ 
)
inlinevirtual

a class that inherits or contains a Wrapper MUST call init before calling other Wrapper methods

Parameters
logicId_the ID of the Logic class used to determine state transitions
fSMId_the ID of the initial finite state machine used by the object (automatically enabled)
state_the initial state of the object (can be different than the default initial state of the FSM)

Reimplemented from OpenSkyNet::AI::Wrapper.

virtual void OpenSkyNet::Core::AIWrapperObject::init ( AI::LOGIC_IDS  logicId_,
AI::FSM_IDS  fSMId_,
AI::State state_,
AI::KB kB_ 
)
inlinevirtual
Parameters
logicId_the ID of the Logic class used to determine state transitions
fSMId_the ID of the initial finite state machine used by the object (automatically enabled)
state_the initial state of the object (can be different than the default initial state of the FSM)
kB_use an KB already created

Reimplemented from OpenSkyNet::AI::Wrapper.

virtual bool OpenSkyNet::Core::AIWrapperObject::performLogic ( bool  includeGlobalKB_ = false)
inlinevirtual

returns true if state changed, false otherwise

change state if necessary

Parameters
includeGlobalKB_use the global KB? (in addition to any local one used)

Reimplemented from OpenSkyNet::AI::Wrapper.


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