uPlayerPrototype Class Reference

#include <uInput.h>

Inheritance diagram for uPlayerPrototype:

Inheritance graph
[legend]
Collaboration diagram for uPlayerPrototype:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 uPlayerPrototype ()
virtual ~uPlayerPrototype ()
virtual bool Act (uAction *act, REAL x)=0
virtual const char * Name () const =0

Static Public Member Functions

static uPlayerPrototypePlayerConfig (int i)
static int Num ()

Protected Attributes

int id

Static Protected Attributes

static uPlayerPrototypeplayerConfig [uMAX_PLAYERS]


Detailed Description

Definition at line 248 of file uInput.h.


Constructor & Destructor Documentation

uPlayerPrototype::uPlayerPrototype (  ) 

Definition at line 746 of file uInput.cpp.

References id, inited, nextid, NULL, playerConfig, tASSERT, and uMAX_PLAYERS.

00747                                   {
00748     static bool inited=false;
00749     if (!inited)
00750     {
00751         for (int i=uMAX_PLAYERS-1; i >=0; i--)
00752             playerConfig[i] = NULL;
00753 
00754         inited = true;
00755     }
00756 
00757     id = nextid++;
00758     tASSERT(id < uMAX_PLAYERS);
00759     playerConfig[id] = this;
00760 
00761 

uPlayerPrototype::~uPlayerPrototype (  )  [virtual]

Definition at line 763 of file uInput.cpp.

References id, NULL, and playerConfig.

00764                                    {
00765     playerConfig[id] = NULL;


Member Function Documentation

virtual bool uPlayerPrototype::Act ( uAction act,
REAL  x 
) [pure virtual]

Implemented in ePlayer.

Referenced by uBindPlayer::DoActivate().

Here is the caller graph for this function:

virtual const char* uPlayerPrototype::Name (  )  const [pure virtual]

Implemented in ePlayer.

Referenced by su_InputConfig(), and su_InputConfigCamera().

Here is the caller graph for this function:

uPlayerPrototype * uPlayerPrototype::PlayerConfig ( int  i  )  [static]

Reimplemented in ePlayer.

Definition at line 740 of file uInput.cpp.

References playerConfig, tASSERT, and uMAX_PLAYERS.

Referenced by uBindPlayer::DoActivate(), ePlayer::PlayerConfig(), su_InputConfig(), and su_InputConfigCamera().

00741                                                      {
00742     tASSERT(i>=0 && i<uMAX_PLAYERS);
00743     return playerConfig[i];

Here is the caller graph for this function:

int uPlayerPrototype::Num (  )  [static]

Definition at line 769 of file uInput.cpp.

References nextid.

Referenced by exit_game_objects(), and init_game_camera().

00770                          {
00771     return nextid;

Here is the caller graph for this function:


Member Data Documentation

uPlayerPrototype * uPlayerPrototype::playerConfig [static, protected]

Definition at line 250 of file uInput.h.

Referenced by PlayerConfig(), uPlayerPrototype(), and ~uPlayerPrototype().

int uPlayerPrototype::id [protected]

Definition at line 251 of file uInput.h.

Referenced by ePlayer::ID(), ePlayer::Init(), uPlayerPrototype(), and ~uPlayerPrototype().


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 00:01:27 2008 for Armagetron Advanced by  doxygen 1.5.4