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
collectmode_common Struct Reference

#include <collect_common.hpp>

Inheritance diagram for collectmode_common:
game::collectclientmode server::collectservermode

Classes

struct  base
 
struct  token
 

Public Member Functions

void resetbases ()
 
bool addbase (int i, const vec &o, int team)
 
tokenfindtoken (int id)
 
tokendroptoken (const vec &o, int team, int droptime)
 
bool removetoken (int id)
 
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 base &b, const vec &o)
 

Public Attributes

vector< basebases
 
int scores [2]
 
vector< tokentokens
 
int nexttoken
 

Static Public Attributes

static const int BASERADIUS = 16
 
static const int BASEHEIGHT = 16
 
static const int MAXBASES = 20
 
static const int TOKENRADIUS = 16
 
static const int TOKENLIMIT = 5
 
static const int UNOWNEDTOKENLIMIT = 15
 
static const int TOKENDIST = 16
 
static const int SCORELIMIT = 50
 
static const int RESPAWNSECS = 5
 
static const int EXPIRETOKENTIME = 10000
 
static const int STEALTOKENTIME = 5000
 

Member Function Documentation

bool collectmode_common::addbase ( int  i,
const vec o,
int  team 
)
inline
int collectmode_common::addscore ( int  team,
int  score 
)
inline
token& collectmode_common::droptoken ( const vec o,
int  team,
int  droptime 
)
inline
token* collectmode_common::findtoken ( int  id)
inline
int collectmode_common::getteamscore ( const char *  team)
inline

References collectteambase, and totalscore().

void collectmode_common::getteamscores ( vector< teamscore > &  tscores)
inline
bool collectmode_common::hidefrags ( )
inline
bool collectmode_common::insidebase ( const base b,
const vec o 
)
inline
bool collectmode_common::removetoken ( int  id)
inline
void collectmode_common::resetbases ( )
inline
int collectmode_common::setscore ( int  team,
int  score 
)
inline
int collectmode_common::totalscore ( int  team)
inline

Member Data Documentation

const int collectmode_common::BASEHEIGHT = 16
static

Referenced by insidebase().

const int collectmode_common::BASERADIUS = 16
static

Referenced by insidebase().

vector<base> collectmode_common::bases
const int collectmode_common::EXPIRETOKENTIME = 10000
static
const int collectmode_common::MAXBASES = 20
static

Referenced by addbase().

int collectmode_common::nexttoken
const int collectmode_common::RESPAWNSECS = 5
static
const int collectmode_common::SCORELIMIT = 50
static
int collectmode_common::scores[2]
const int collectmode_common::STEALTOKENTIME = 5000
static
const int collectmode_common::TOKENDIST = 16
static
const int collectmode_common::TOKENLIMIT = 5
static
const int collectmode_common::TOKENRADIUS = 16
static
vector<token> collectmode_common::tokens
const int collectmode_common::UNOWNEDTOKENLIMIT = 15
static

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