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

#include <capture_common.hpp>

Inheritance diagram for capturemode_common:
game::captureclientmode server::captureservermode

Classes

struct  baseinfo
 
struct  score
 

Public Member Functions

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 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
 

Class Documentation

struct capturemode_common::score
Class Members
string team
int total

Member Function Documentation

void capturemode_common::addbase ( int  ammotype,
const vec o 
)
inline
float capturemode_common::disttoenemy ( baseinfo b)
inline
score& capturemode_common::findscore ( const char *  team)
inline
int capturemode_common::getteamscore ( const char *  team)
inline
void capturemode_common::getteamscores ( vector< teamscore > &  teamscores)
inline
bool capturemode_common::hasbases ( const char *  team)
inline
bool capturemode_common::hidefrags ( )
inline
void capturemode_common::initbase ( int  i,
int  ammotype,
const char *  owner,
const char *  enemy,
int  converted,
int  ammo 
)
inline
bool capturemode_common::insidebase ( const baseinfo b,
const vec o 
)
inline
void capturemode_common::resetbases ( )
inline

References bases, captures, and scores.

Referenced by server::captureservermode::reset().

Member Data Documentation

const int capturemode_common::AMMOSECS = 15
static
vector<baseinfo> capturemode_common::bases
const int capturemode_common::CAPTUREHEIGHT = 24
static

Referenced by insidebase().

const int capturemode_common::CAPTURERADIUS = 64
static

Referenced by insidebase().

int capturemode_common::captures = 0

Referenced by resetbases().

const int capturemode_common::MAXAMMO = 5
static
const int capturemode_common::MAXBASES = 100
static

Referenced by addbase().

const int capturemode_common::OCCUPYBONUS = 1
static
const int capturemode_common::OCCUPYENEMYLIMIT = 28
static
const int capturemode_common::OCCUPYNEUTRALLIMIT = 14
static
const int capturemode_common::OCCUPYPOINTS = 1
static
const int capturemode_common::REGENAMMO = 20
static
const int capturemode_common::REGENARMOUR = 10
static
const int capturemode_common::REGENHEALTH = 10
static
const int capturemode_common::REGENRESPAWNSECS = 0
static
const int capturemode_common::REGENSECS = 1
static
const int capturemode_common::REPAMMODIST = 32
static
const int capturemode_common::RESPAWNSECS = 10
static
vector<score> capturemode_common::scores
const int capturemode_common::SCORESECS = 10
static

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