Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
aiman Namespace Reference

Functions

 VARN (serverbotlimit, botlimit, 0, 8, MAXBOTS)
 
 VAR (serverbotbalance, 0, 1, 1)
 
void calcteams (vector< teamscore > &teams)
 
void balanceteams ()
 
const char * chooseteam ()
 
static bool validaiclient (clientinfo *ci)
 
clientinfo * findaiclient (clientinfo *exclude=nullptr)
 
bool addai (int skill, int limit)
 
void deleteai (clientinfo *ci)
 
bool deleteai ()
 
void reinitai (clientinfo *ci)
 
void shiftai (clientinfo *ci, clientinfo *owner=nullptr)
 
void removeai (clientinfo *ci)
 
bool reassignai ()
 
void checksetup ()
 
void clearai ()
 
void checkai ()
 
void reqadd (clientinfo *ci, int skill)
 
void reqdel (clientinfo *ci)
 
void setbotlimit (clientinfo *ci, int limit)
 
void setbotbalance (clientinfo *ci, bool balance)
 
void changemap ()
 
void addclient (clientinfo *ci)
 
void changeteam (clientinfo *ci)
 

Variables

bool dorefresh = false
 
bool botbalance = true
 

Function Documentation

bool aiman::addai ( int  skill,
int  limit 
)
void aiman::addclient ( clientinfo *  ci)

References AI_NONE, and dorefresh.

void aiman::balanceteams ( )
void aiman::calcteams ( vector< teamscore > &  teams)
void aiman::changemap ( )
void aiman::changeteam ( clientinfo *  ci)

References AI_NONE, and dorefresh.

void aiman::checkai ( )
void aiman::checksetup ( )
const char* aiman::chooseteam ( )
void aiman::clearai ( )

References server::bots, deleteai(), and loopvrev.

Referenced by checkai().

void aiman::deleteai ( clientinfo *  ci)
bool aiman::deleteai ( )

References server::bots, deleteai(), and loopvrev.

clientinfo* aiman::findaiclient ( clientinfo *  exclude = nullptr)

References game::clients, loopv, and validaiclient().

Referenced by addai(), and removeai().

bool aiman::reassignai ( )

References game::clients, loopv, loopvrev, shiftai(), and validaiclient().

Referenced by checkai().

void aiman::reinitai ( clientinfo *  ci)
void aiman::removeai ( clientinfo *  ci)

References findaiclient(), loopvrev, and shiftai().

void aiman::reqadd ( clientinfo *  ci,
int  skill 
)

References addai(), N_SERVMSG, PRIV_ADMIN, and sendf().

void aiman::reqdel ( clientinfo *  ci)

References deleteai(), N_SERVMSG, and sendf().

void aiman::setbotbalance ( clientinfo *  ci,
bool  balance 
)

References botbalance, defformatstring, dorefresh, and sendservmsg().

Referenced by changemap().

void aiman::setbotlimit ( clientinfo *  ci,
int  limit 
)
void aiman::shiftai ( clientinfo *  ci,
clientinfo *  owner = nullptr 
)
static bool aiman::validaiclient ( clientinfo *  ci)
inlinestatic

References AI_NONE, and CS_SPECTATOR.

Referenced by findaiclient(), and reassignai().

aiman::VAR ( serverbotbalance  ,
,
,
 
)
aiman::VARN ( serverbotlimit  ,
botlimit  ,
,
,
MAXBOTS   
)

Variable Documentation

bool aiman::botbalance = true
bool aiman::dorefresh = false