Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
game::captureclientmode Struct Reference

#include <capture_client.hpp>

Inheritance diagram for game::captureclientmode:
game::clientmode capturemode_common

Public Member Functions

void respawned (fpsent *d) override
 
void replenishammo ()
 
void receiveammo (fpsent *d, int type)
 
void checkitems (fpsent *d) override
 
void rendertether (fpsent *d)
 
void preload () override
 
void rendergame () override
 
void drawblips (fpsent *d, float blipsize, int fw, int fh, int type, bool skipenemy=false)
 
int respawnwait (fpsent *d) override
 
int clipconsole (int w, int h) override
 
void drawhud (fpsent *d, int w, int h) override
 
void setup () override
 
void senditems (packetbuf &p) override
 
void updatebase (int i, const char *owner, const char *enemy, int converted, int ammo)
 
void setscore (int base, const char *team, int total)
 
int closesttoenemy (const char *team, bool noattacked=false, bool farthest=false)
 
int pickteamspawn (const char *team)
 
void pickspawn (fpsent *d) override
 
bool aicheck (fpsent *d, ai::aistate &b) override
 
void aifind (fpsent *d, ai::aistate &b, vector< ai::interest > &interests) override
 
bool aidefend (fpsent *d, ai::aistate &b) override
 
bool aipursue (fpsent *d, ai::aistate &b) override
 
bool parse_network_message (int type, ucharbuf &p) override
 Parse game mode specific network messages. More...
 
virtual bool isinvisible (fpsent *d)
 
virtual void addplayer (fpsent *d)
 
virtual void removeplayer (fpsent *d)
 
virtual void gameover ()
 
virtual bool hidefrags ()
 
virtual int getteamscore (const char *team)
 
virtual void getteamscores (vector< teamscore > &scores)
 
virtual void killed (fpsent *d, fpsent *actor)
 
virtual void gameconnect (fpsent *d)
 
virtual void renderscoreboard (g3d_gui &g, scoregroup &sg, int fgcolor, int bgcolor)
 
void resetbases ()
 
bool hidefrags ()
 
int getteamscore (const char *team)
 
void getteamscores (vector< teamscore > &teamscores)
 
scorefindscore (const char *team)
 
void addbase (int ammotype, const vec &o)
 
void initbase (int i, int ammotype, const char *owner, const char *enemy, int converted, int ammo)
 
bool hasbases (const char *team)
 
float disttoenemy (baseinfo &b)
 
bool insidebase (const baseinfo &b, const vec &o)
 

Public Attributes

vector< baseinfobases
 
vector< scorescores
 
int captures = 0
 

Static Public Attributes

static const int AMMOHEIGHT = 5
 
static const int CAPTURERADIUS = 64
 
static const int CAPTUREHEIGHT = 24
 
static const int OCCUPYBONUS = 1
 
static const int OCCUPYPOINTS = 1
 
static const int OCCUPYENEMYLIMIT = 28
 
static const int OCCUPYNEUTRALLIMIT = 14
 
static const int SCORESECS = 10
 
static const int AMMOSECS = 15
 
static const int REGENSECS = 1
 
static const int REGENHEALTH = 10
 
static const int REGENARMOUR = 10
 
static const int REGENAMMO = 20
 
static const int MAXAMMO = 5
 
static const int REPAMMODIST = 32
 
static const int RESPAWNSECS = 10
 
static const int REGENRESPAWNSECS = 0
 
static const int MAXBASES = 100
 

Member Function Documentation

void capturemode_common::addbase ( int  ammotype,
const vec o 
)
inlineinherited
virtual void game::clientmode::addplayer ( fpsent d)
inlinevirtualinherited
bool game::captureclientmode::aicheck ( fpsent d,
ai::aistate b 
)
inlineoverridevirtual

Reimplemented from game::clientmode.

bool game::captureclientmode::aidefend ( fpsent d,
ai::aistate b 
)
overridevirtual
void game::captureclientmode::aifind ( fpsent d,
ai::aistate b,
vector< ai::interest > &  interests 
)
overridevirtual
bool game::captureclientmode::aipursue ( fpsent d,
ai::aistate b 
)
inlineoverridevirtual

Reimplemented from game::clientmode.

References ai::AI_S_DEFEND, aidefend(), and ai::aistate::type.

void game::captureclientmode::checkitems ( fpsent d)
overridevirtual
int game::captureclientmode::clipconsole ( int  w,
int  h 
)
inlineoverridevirtual

Reimplemented from game::clientmode.

int game::captureclientmode::closesttoenemy ( const char *  team,
bool  noattacked = false,
bool  farthest = false 
)
float capturemode_common::disttoenemy ( baseinfo b)
inlineinherited
void game::captureclientmode::drawblips ( fpsent d,
float  blipsize,
int  fw,
int  fh,
int  type,
bool  skipenemy = false 
)
void game::captureclientmode::drawhud ( fpsent d,
int  w,
int  h 
)
overridevirtual
score& capturemode_common::findscore ( const char *  team)
inlineinherited
virtual void game::clientmode::gameconnect ( fpsent d)
inlinevirtualinherited

Reimplemented in game::bombclientmode.

virtual void game::clientmode::gameover ( )
inlinevirtualinherited

Referenced by game::timeupdate().

virtual int game::clientmode::getteamscore ( const char *  team)
inlinevirtualinherited

Referenced by game::groupplayers().

int capturemode_common::getteamscore ( const char *  team)
inlineinherited
virtual void game::clientmode::getteamscores ( vector< teamscore > &  scores)
inlinevirtualinherited

Referenced by game::getbestteams().

void capturemode_common::getteamscores ( vector< teamscore > &  teamscores)
inlineinherited
bool capturemode_common::hasbases ( const char *  team)
inlineinherited
virtual bool game::clientmode::hidefrags ( )
inlinevirtualinherited
bool capturemode_common::hidefrags ( )
inlineinherited
void capturemode_common::initbase ( int  i,
int  ammotype,
const char *  owner,
const char *  enemy,
int  converted,
int  ammo 
)
inlineinherited
bool capturemode_common::insidebase ( const baseinfo b,
const vec o 
)
inlineinherited
virtual bool game::clientmode::isinvisible ( fpsent d)
inlinevirtualinherited

Reimplemented in game::hideandseekclientmode.

Referenced by game::rendergame().

virtual void game::clientmode::killed ( fpsent d,
fpsent actor 
)
inlinevirtualinherited

Reimplemented in game::hideandseekclientmode, and game::bombclientmode.

Referenced by game::killed().

bool game::captureclientmode::parse_network_message ( int  type,
ucharbuf p 
)
overridevirtual
void game::captureclientmode::pickspawn ( fpsent d)
inlineoverridevirtual

Reimplemented from game::clientmode.

References findplayerspawn(), pickteamspawn(), and fpsent::team.

int game::captureclientmode::pickteamspawn ( const char *  team)
void game::captureclientmode::preload ( )
overridevirtual
void game::captureclientmode::receiveammo ( fpsent d,
int  type 
)
virtual void game::clientmode::removeplayer ( fpsent d)
inlinevirtualinherited

Reimplemented in game::ctfclientmode.

Referenced by game::clientdisconnected().

void game::captureclientmode::rendergame ( )
overridevirtual
virtual void game::clientmode::renderscoreboard ( g3d_gui g,
scoregroup sg,
int  fgcolor,
int  bgcolor 
)
inlinevirtualinherited
void game::captureclientmode::rendertether ( fpsent d)
void game::captureclientmode::replenishammo ( )
void capturemode_common::resetbases ( )
inlineinherited
void game::captureclientmode::respawned ( fpsent d)
inlineoverridevirtual

Reimplemented from game::clientmode.

int game::captureclientmode::respawnwait ( fpsent d)
inlineoverridevirtual
void game::captureclientmode::senditems ( packetbuf p)
overridevirtual
void game::captureclientmode::setscore ( int  base,
const char *  team,
int  total 
)
void game::captureclientmode::setup ( )
overridevirtual
void game::captureclientmode::updatebase ( int  i,
const char *  owner,
const char *  enemy,
int  converted,
int  ammo 
)

Member Data Documentation

const int game::captureclientmode::AMMOHEIGHT = 5
static
const int capturemode_common::AMMOSECS = 15
staticinherited
vector<baseinfo> capturemode_common::bases
inherited
const int capturemode_common::CAPTUREHEIGHT = 24
staticinherited
const int capturemode_common::CAPTURERADIUS = 64
staticinherited
int capturemode_common::captures = 0
inherited
const int capturemode_common::MAXAMMO = 5
staticinherited
const int capturemode_common::MAXBASES = 100
staticinherited
const int capturemode_common::OCCUPYBONUS = 1
staticinherited
const int capturemode_common::OCCUPYENEMYLIMIT = 28
staticinherited
const int capturemode_common::OCCUPYNEUTRALLIMIT = 14
staticinherited
const int capturemode_common::OCCUPYPOINTS = 1
staticinherited
const int capturemode_common::REGENAMMO = 20
staticinherited
const int capturemode_common::REGENARMOUR = 10
staticinherited
const int capturemode_common::REGENHEALTH = 10
staticinherited
const int capturemode_common::REGENRESPAWNSECS = 0
staticinherited
const int capturemode_common::REGENSECS = 1
staticinherited
const int capturemode_common::REPAMMODIST = 32
staticinherited
const int capturemode_common::RESPAWNSECS = 10
staticinherited
vector<score> capturemode_common::scores
inherited
const int capturemode_common::SCORESECS = 10
staticinherited

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