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::ctfclientmode Struct Reference

#include <ctf_client.hpp>

Inheritance diagram for game::ctfclientmode:
game::clientmode ctfmode

Public Member Functions

bool addflag (int i, const vec &o, int team, int vistime=-1000)
 
void ownflag (int i, fpsent *owner, int owntime)
 
void returnflag (int i, int vistime=-1000)
 
void preload () override
 
void drawblip (fpsent *d, float x, float y, float s, const vec &pos, bool flagblip)
 
void drawblip (fpsent *d, float x, float y, float s, int i, bool flagblip)
 
int clipconsole (int w, int h) override
 
void drawhud (fpsent *d, int w, int h) override
 
void removeplayer (fpsent *d) override
 
vec interpflagpos (flag &f, float &angle)
 
vec interpflagpos (flag &f)
 
void rendergame () override
 
void setup () override
 
void senditems (packetbuf &p) override
 
void parseflags (ucharbuf &p, bool commit)
 
void trydropflag ()
 
const char * teamcolorflag (flag &f)
 
void dropflag (int i, const vec &o, float yaw, int droptime)
 
void dropflag (fpsent *d, int i, int version, const vec &droploc)
 
void flagexplosion (int i, int team, const vec &loc)
 
void flageffect (int i, int team, const vec &from, const vec &to)
 
void returnflag (fpsent *d, int i, int version)
 
void spawnflag (flag &f)
 
void resetflag (int i, int version, int spawnindex, int team, int score)
 
void scoreflag (fpsent *d, int relay, int relayversion, int goal, int goalversion, int goalspawn, int team, int score, int dflags, int time)
 
void takeflag (fpsent *d, int i, int version)
 
void invisflag (int i, int invis)
 
void checkitems (fpsent *d) override
 
void respawned (fpsent *d) override
 
int respawnwait (fpsent *d) override
 
bool pickholdspawn (fpsent *d)
 
void pickspawn (fpsent *d) override
 
bool aihomerun (fpsent *d, ai::aistate &b)
 
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 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 resetflags ()
 
bool addflag (int i, const vec &o, int team)
 
bool addholdspawn (const vec &o)
 
int totalscore (int team)
 
int setscore (int team, int score)
 
int addscore (int team, int score)
 
bool hidefrags ()
 
int getteamscore (const char *team)
 
void getteamscores (vector< teamscore > &tscores)
 
bool insidebase (const flag &f, const vec &o)
 

Public Attributes

vector< holdspawnholdspawns
 
vector< flagflags
 
int scores [2]
 

Static Public Attributes

static const int BASERADIUS = 64
 
static const int BASEHEIGHT = 24
 
static const int MAXFLAGS = 20
 
static const int FLAGRADIUS = 16
 
static const int FLAGLIMIT = 10
 
static const int MAXHOLDSPAWNS = 100
 
static const int HOLDSECS = 20
 
static const int HOLDFLAGS = 1
 
static const int RESPAWNSECS = 5
 

Member Function Documentation

bool game::ctfclientmode::addflag ( int  i,
const vec o,
int  team,
int  vistime = -1000 
)
bool ctfmode::addflag ( int  i,
const vec o,
int  team 
)
inlineinherited
bool ctfmode::addholdspawn ( const vec o)
inlineinherited
virtual void game::clientmode::addplayer ( fpsent d)
inlinevirtualinherited
int ctfmode::addscore ( int  team,
int  score 
)
inlineinherited
bool game::ctfclientmode::aicheck ( fpsent d,
ai::aistate b 
)
overridevirtual
bool game::ctfclientmode::aidefend ( fpsent d,
ai::aistate b 
)
overridevirtual
void game::ctfclientmode::aifind ( fpsent d,
ai::aistate b,
vector< ai::interest > &  interests 
)
overridevirtual
bool game::ctfclientmode::aihomerun ( fpsent d,
ai::aistate b 
)
bool game::ctfclientmode::aipursue ( fpsent d,
ai::aistate b 
)
overridevirtual
void game::ctfclientmode::checkitems ( fpsent d)
overridevirtual
int game::ctfclientmode::clipconsole ( int  w,
int  h 
)
inlineoverridevirtual

Reimplemented from game::clientmode.

void game::ctfclientmode::drawblip ( fpsent d,
float  x,
float  y,
float  s,
const vec pos,
bool  flagblip 
)
void game::ctfclientmode::drawblip ( fpsent d,
float  x,
float  y,
float  s,
int  i,
bool  flagblip 
)
void game::ctfclientmode::drawhud ( fpsent d,
int  w,
int  h 
)
overridevirtual
void game::ctfclientmode::dropflag ( int  i,
const vec o,
float  yaw,
int  droptime 
)
void game::ctfclientmode::dropflag ( fpsent d,
int  i,
int  version,
const vec droploc 
)
void game::ctfclientmode::flageffect ( int  i,
int  team,
const vec from,
const vec to 
)
void game::ctfclientmode::flagexplosion ( int  i,
int  team,
const vec loc 
)
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 ctfmode::getteamscore ( const char *  team)
inlineinherited
virtual void game::clientmode::getteamscores ( vector< teamscore > &  scores)
inlinevirtualinherited

Referenced by game::getbestteams().

void ctfmode::getteamscores ( vector< teamscore > &  tscores)
inlineinherited
virtual bool game::clientmode::hidefrags ( )
inlinevirtualinherited
bool ctfmode::hidefrags ( )
inlineinherited
bool ctfmode::insidebase ( const flag f,
const vec o 
)
inlineinherited
vec game::ctfclientmode::interpflagpos ( flag f,
float &  angle 
)
vec game::ctfclientmode::interpflagpos ( flag f)
inline

References interpflagpos().

Referenced by interpflagpos().

void game::ctfclientmode::invisflag ( int  i,
int  invis 
)
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().

void game::ctfclientmode::ownflag ( int  i,
fpsent owner,
int  owntime 
)
bool game::ctfclientmode::parse_network_message ( int  type,
ucharbuf p 
)
overridevirtual
void game::ctfclientmode::parseflags ( ucharbuf p,
bool  commit 
)
bool game::ctfclientmode::pickholdspawn ( fpsent d)
void game::ctfclientmode::pickspawn ( fpsent d)
overridevirtual
void game::ctfclientmode::preload ( )
overridevirtual
void game::ctfclientmode::removeplayer ( fpsent d)
overridevirtual
void game::ctfclientmode::rendergame ( )
overridevirtual
virtual void game::clientmode::renderscoreboard ( g3d_gui g,
scoregroup sg,
int  fgcolor,
int  bgcolor 
)
inlinevirtualinherited
void game::ctfclientmode::resetflag ( int  i,
int  version,
int  spawnindex,
int  team,
int  score 
)
void ctfmode::resetflags ( )
inlineinherited
void game::ctfclientmode::respawned ( fpsent d)
overridevirtual
int game::ctfclientmode::respawnwait ( fpsent d)
overridevirtual
void game::ctfclientmode::returnflag ( int  i,
int  vistime = -1000 
)
void game::ctfclientmode::returnflag ( fpsent d,
int  i,
int  version 
)
void game::ctfclientmode::scoreflag ( fpsent d,
int  relay,
int  relayversion,
int  goal,
int  goalversion,
int  goalspawn,
int  team,
int  score,
int  dflags,
int  time 
)
void game::ctfclientmode::senditems ( packetbuf p)
overridevirtual
int ctfmode::setscore ( int  team,
int  score 
)
inlineinherited

References ctfmode::scores.

Referenced by resetflag(), and scoreflag().

void game::ctfclientmode::setup ( )
overridevirtual
void game::ctfclientmode::spawnflag ( flag f)
void game::ctfclientmode::takeflag ( fpsent d,
int  i,
int  version 
)
const char * game::ctfclientmode::teamcolorflag ( flag f)
int ctfmode::totalscore ( int  team)
inlineinherited

References ctfmode::scores.

Referenced by ctfmode::getteamscore().

void game::ctfclientmode::trydropflag ( )

Member Data Documentation

const int ctfmode::BASEHEIGHT = 24
staticinherited

Referenced by ctfmode::insidebase().

const int ctfmode::BASERADIUS = 64
staticinherited

Referenced by ctfmode::insidebase().

const int ctfmode::FLAGLIMIT = 10
staticinherited
const int ctfmode::FLAGRADIUS = 16
staticinherited
vector<flag> ctfmode::flags
inherited
const int ctfmode::HOLDFLAGS = 1
staticinherited
const int ctfmode::HOLDSECS = 20
staticinherited
vector<holdspawn> ctfmode::holdspawns
inherited
const int ctfmode::MAXFLAGS = 20
staticinherited

Referenced by ctfmode::addflag().

const int ctfmode::MAXHOLDSPAWNS = 100
staticinherited

Referenced by ctfmode::addholdspawn().

const int ctfmode::RESPAWNSECS = 5
staticinherited
int ctfmode::scores[2]
inherited

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