gSimpleAIFactory Class Reference

#include <gAIBase.h>

Inheritance diagram for gSimpleAIFactory:

Inheritance graph
[legend]
Collaboration diagram for gSimpleAIFactory:

Collaboration graph
[legend]

List of all members.

Public Member Functions

gSimpleAICreate (gCycle *object) const

Static Public Member Functions

static gSimpleAIFactoryGet ()
static void Set (gSimpleAIFactory *factory)

Protected Member Functions

virtual gSimpleAIDoCreate () const =0

Static Private Attributes

static gSimpleAIFactoryfactory_ = NULL


Detailed Description

Definition at line 78 of file gAIBase.h.


Member Function Documentation

gSimpleAI * gSimpleAIFactory::Create ( gCycle object  )  const

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 }

Here is the call graph for this function:

Here is the caller graph for this function:

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 }

Here is the caller graph for this function:

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 }

Here is the caller graph for this function:

virtual gSimpleAI* gSimpleAIFactory::DoCreate (  )  const [protected, pure virtual]

Implemented in SwigDirector_GSimpleAIFactory.

Referenced by Create().

Here is the caller graph for this function:


Member Data Documentation

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

Definition at line 87 of file gAIBase.h.

Referenced by Get(), and Set().


The documentation for this class was generated from the following files:
Generated on Sat Mar 15 23:45:40 2008 for Armagetron Advanced by  doxygen 1.5.4