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

#include <ctf_common.hpp>

Inheritance diagram for ctfmode:
game::ctfclientmode server::ctfservermode

Classes

struct  holdspawn
 

Public Member Functions

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
 

Class Documentation

struct ctfmode::holdspawn
Class Members
entitylight light
vec o

Member Function Documentation

bool ctfmode::addflag ( int  i,
const vec o,
int  team 
)
inline
bool ctfmode::addholdspawn ( const vec o)
inline
int ctfmode::addscore ( int  team,
int  score 
)
inline
int ctfmode::getteamscore ( const char *  team)
inline

References ctfteamflag, and totalscore().

void ctfmode::getteamscores ( vector< teamscore > &  tscores)
inline
bool ctfmode::hidefrags ( )
inline
bool ctfmode::insidebase ( const flag f,
const vec o 
)
inline
void ctfmode::resetflags ( )
inline
int ctfmode::setscore ( int  team,
int  score 
)
inline
int ctfmode::totalscore ( int  team)
inline

References scores.

Referenced by getteamscore().

Member Data Documentation

const int ctfmode::BASEHEIGHT = 24
static

Referenced by insidebase().

const int ctfmode::BASERADIUS = 64
static

Referenced by insidebase().

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

Referenced by addflag().

const int ctfmode::MAXHOLDSPAWNS = 100
static

Referenced by addholdspawn().

const int ctfmode::RESPAWNSECS = 5
static
int ctfmode::scores[2]

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