#include <gAIBase.h>


Public Member Functions | |
| gSimpleAI * | Create (gCycle *object) const |
Static Public Member Functions | |
| static gSimpleAIFactory * | Get () |
| static void | Set (gSimpleAIFactory *factory) |
Protected Member Functions | |
| virtual gSimpleAI * | DoCreate () const =0 |
Static Private Attributes | |
| static gSimpleAIFactory * | factory_ = NULL |
Definition at line 78 of file gAIBase.h.
Definition at line 80 of file gAIBase.cpp.
References ai, DoCreate(), and gSimpleAI::SetObject().
Referenced by _wrap_GSimpleAIFactory_create(), and gAIPlayer::Think().
00081 { 00082 gSimpleAI * ai = DoCreate(); 00083 if ( ai ) 00084 ai->SetObject( object ); 00085 return ai; 00086 }


| gSimpleAIFactory * gSimpleAIFactory::Get | ( | void | ) | [static] |
Definition at line 88 of file gAIBase.cpp.
References factory_.
Referenced by _wrap_GSimpleAIFactory_get(), and gAIPlayer::Think().
00089 { 00090 return factory_; 00091 }

| void gSimpleAIFactory::Set | ( | gSimpleAIFactory * | factory | ) | [static] |
Definition at line 93 of file gAIBase.cpp.
References factory_.
Referenced by _wrap_GSimpleAIFactory_set().
00094 { 00095 factory_ = factory; 00096 }

| virtual gSimpleAI* gSimpleAIFactory::DoCreate | ( | ) | const [protected, pure virtual] |
Implemented in SwigDirector_GSimpleAIFactory.
Referenced by Create().

gSimpleAIFactory * gSimpleAIFactory::factory_ = NULL [static, private] |
1.5.4