TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GameObjectAI Class Reference

#include <GameObjectAI.h>

Public Member Functions

 GameObjectAI (GameObject *g)
 
virtual ~GameObjectAI ()
 
virtual void UpdateAI (uint32)
 
virtual void InitializeAI ()
 
virtual void Reset ()
 
virtual void DoAction (int32)
 
virtual void SetGUID (uint64, int32)
 
virtual uint64 GetGUID (int32) const
 
virtual bool GossipHello (Player *)
 
virtual bool GossipSelect (Player *, uint32, uint32)
 
virtual bool GossipSelectCode (Player *, uint32, uint32, char const *)
 
virtual bool QuestAccept (Player *, Quest const *)
 
virtual bool QuestReward (Player *, Quest const *, uint32)
 
virtual uint32 GetDialogStatus (Player *)
 
virtual void Destroyed (Player *, uint32)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData64 (uint32, uint64)
 
virtual uint64 GetData64 (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void OnGameEvent (bool, uint16)
 
virtual void OnStateChanged (uint32, Unit *)
 
virtual void EventInform (uint32)
 

Static Public Member Functions

static int Permissible (GameObject const *go)
 

Protected Attributes

GameObject *const go
 

Constructor & Destructor Documentation

GameObjectAI::GameObjectAI ( GameObject g)
inlineexplicit
34 : go(g) { }
GameObject *const go
Definition: GameObjectAI.h:32
virtual GameObjectAI::~GameObjectAI ( )
inlinevirtual
35 { }

Member Function Documentation

virtual void GameObjectAI::Destroyed ( Player ,
uint32   
)
inlinevirtual

Reimplemented in SmartGameObjectAI.

56 { }
virtual void GameObjectAI::DoAction ( int32  )
inlinevirtual

Reimplemented in go_toy_train_set::go_toy_train_setAI.

44 { }
virtual void GameObjectAI::EventInform ( uint32  )
inlinevirtual

Reimplemented in SmartGameObjectAI.

63 { }

+ Here is the caller graph for this function:

virtual uint32 GameObjectAI::GetData ( uint32  ) const
inlinevirtual
57 { return 0; }
virtual uint64 GameObjectAI::GetData64 ( uint32  ) const
inlinevirtual
59 { return 0; }
virtual uint32 GameObjectAI::GetDialogStatus ( Player )
inlinevirtual
Definition: QuestDef.h:136
virtual uint64 GameObjectAI::GetGUID ( int32  ) const
inlinevirtual
46 { return 0; }
virtual bool GameObjectAI::GossipHello ( Player )
inlinevirtual
virtual bool GameObjectAI::GossipSelect ( Player ,
uint32  ,
uint32   
)
inlinevirtual

Reimplemented in SmartGameObjectAI.

51 { return false; }

+ Here is the caller graph for this function:

virtual bool GameObjectAI::GossipSelectCode ( Player ,
uint32  ,
uint32  ,
char const  
)
inlinevirtual

Reimplemented in SmartGameObjectAI.

52 { return false; }

+ Here is the caller graph for this function:

virtual void GameObjectAI::InitializeAI ( )
inlinevirtual

Reimplemented in SmartGameObjectAI.

39 { Reset(); }
virtual void Reset()
Definition: GameObjectAI.h:41

+ Here is the caller graph for this function:

virtual void GameObjectAI::OnGameEvent ( bool  ,
uint16   
)
inlinevirtual

Reimplemented in SmartGameObjectAI.

61 { }
virtual void GameObjectAI::OnStateChanged ( uint32  ,
Unit  
)
inlinevirtual

Reimplemented in SmartGameObjectAI.

62 { }

+ Here is the caller graph for this function:

int GameObjectAI::Permissible ( GameObject const go)
static
23 {
24  if (go->GetAIName() == "GameObjectAI")
25  return PERMIT_BASE_SPECIAL;
26  return PERMIT_BASE_NO;
27 }
Definition: CreatureAI.h:207
std::string GetAIName() const
Definition: GameObject.cpp:90
Definition: CreatureAI.h:212
GameObject *const go
Definition: GameObjectAI.h:32

+ Here is the call graph for this function:

virtual bool GameObjectAI::QuestAccept ( Player ,
Quest const  
)
inlinevirtual

Reimplemented in SmartGameObjectAI.

53 { return false; }
virtual bool GameObjectAI::QuestReward ( Player ,
Quest const ,
uint32   
)
inlinevirtual

Reimplemented in SmartGameObjectAI.

54 { return false; }

+ Here is the caller graph for this function:

virtual void GameObjectAI::Reset ( )
inlinevirtual

Reimplemented in SmartGameObjectAI.

41 { }
virtual void GameObjectAI::SetData ( uint32  ,
uint32   
)
inlinevirtual

Reimplemented in SmartGameObjectAI.

60 { }
virtual void GameObjectAI::SetData64 ( uint32  ,
uint64   
)
inlinevirtual
58 { }
virtual void GameObjectAI::SetGUID ( uint64  ,
int32   
)
inlinevirtual
45 { }

Member Data Documentation

GameObject* const GameObjectAI::go
protected

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