#include <uInput.h>
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 uPlayerPrototype * | PlayerConfig (int i) |
static int | Num () |
Protected Attributes | |
int | id |
Static Protected Attributes | |
static uPlayerPrototype * | playerConfig [uMAX_PLAYERS] |
Definition at line 248 of file uInput.h.
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;
Implemented in ePlayer.
Referenced by uBindPlayer::DoActivate().
virtual const char* uPlayerPrototype::Name | ( | ) | const [pure virtual] |
Implemented in ePlayer.
Referenced by su_InputConfig(), and su_InputConfigCamera().
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];
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;
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().