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

#include <capture_common.hpp>

Public Member Functions

 baseinfo ()
 
bool valid () const
 
void noenemy ()
 
void reset ()
 
bool enter (const char *team)
 
bool steal (const char *team)
 
bool leave (const char *team)
 
int occupy (const char *team, int units)
 
bool addammo (int i)
 
bool takeammo (const char *team)
 

Public Attributes

vec o
 
string owner
 
string enemy
 
vec ammopos
 
string name
 
string info
 
entitylight light
 
int ammogroup
 
int ammotype
 
int ammo
 
int owners
 
int enemies
 
int converted
 
int capturetime
 

Constructor & Destructor Documentation

capturemode_common::baseinfo::baseinfo ( )
inline

References reset().

Member Function Documentation

bool capturemode_common::baseinfo::addammo ( int  i)
inline
bool capturemode_common::baseinfo::enter ( const char *  team)
inline
bool capturemode_common::baseinfo::leave ( const char *  team)
inline
void capturemode_common::baseinfo::noenemy ( )
inline

References converted, enemies, and enemy.

Referenced by occupy(), and reset().

int capturemode_common::baseinfo::occupy ( const char *  team,
int  units 
)
inline
void capturemode_common::baseinfo::reset ( )
inline

References ammo, ammogroup, ammotype, capturetime, noenemy(), owner, and owners.

Referenced by baseinfo().

bool capturemode_common::baseinfo::steal ( const char *  team)
inline

References enemies, and owner.

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

bool capturemode_common::baseinfo::takeammo ( const char *  team)
inline

References ammo, and owner.

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

bool capturemode_common::baseinfo::valid ( ) const
inline

Member Data Documentation

int capturemode_common::baseinfo::ammo
int capturemode_common::baseinfo::ammogroup
vec capturemode_common::baseinfo::ammopos
int capturemode_common::baseinfo::ammotype
int capturemode_common::baseinfo::capturetime
int capturemode_common::baseinfo::converted
int capturemode_common::baseinfo::enemies
string capturemode_common::baseinfo::enemy
string capturemode_common::baseinfo::info
entitylight capturemode_common::baseinfo::light
string capturemode_common::baseinfo::name
vec capturemode_common::baseinfo::o
string capturemode_common::baseinfo::owner
int capturemode_common::baseinfo::owners

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