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

#include <collect_client.hpp>

Inheritance diagram for game::collectclientmode:
game::clientmode collectmode_common

Public Member Functions

tokendroptoken (int id, const vec &o, int team, int droptime)
 
void preload () override
 
void drawblip (fpsent *d, float x, float y, float s, const vec &pos, float size=0.05f)
 
void drawbaseblip (fpsent *d, float x, float y, float s, int i)
 
int clipconsole (int w, int h) override
 
void drawhud (fpsent *d, int w, int h) override
 
void rendergame () override
 
void setup () override
 
void senditems (packetbuf &p) override
 
vec movetoken (const vec &o, int yaw)
 
void parsetokens (ucharbuf &p, bool commit)
 
void baseexplosion (int i, int team, const vec &loc)
 
void baseeffect (int i, int team, const vec &from, const vec &to, bool showfrom=true, bool showto=true)
 
void expiretoken (int id)
 
void taketoken (fpsent *d, int id, int total)
 
tokendroptoken (fpsent *d, int id, const vec &o, int team, int yaw, int n)
 
void stealtoken (fpsent *d, int id, const vec &o, int team, int yaw, int n, int basenum, int enemyteam, int score)
 
void deposittokens (fpsent *d, int basenum, int deposited, int team, int score, int flags)
 
void checkitems (fpsent *d) override
 
int respawnwait (fpsent *d) override
 
void pickspawn (fpsent *d) override
 
bool aicheck (fpsent *d, ai::aistate &b) override
 
void aifind (fpsent *d, ai::aistate &b, vector< ai::interest > &interests) override
 
bool aipursue (fpsent *d, ai::aistate &b) override
 
bool parse_network_message (int type, ucharbuf &p) override
 Parse game mode specific network messages. More...
 
virtual bool isinvisible (fpsent *d)
 
virtual void respawned (fpsent *d)
 
virtual void addplayer (fpsent *d)
 
virtual void removeplayer (fpsent *d)
 
virtual void gameover ()
 
virtual bool hidefrags ()
 
virtual int getteamscore (const char *team)
 
virtual void getteamscores (vector< teamscore > &scores)
 
virtual bool aidefend (fpsent *d, ai::aistate &b)
 
virtual void killed (fpsent *d, fpsent *actor)
 
virtual void gameconnect (fpsent *d)
 
virtual void renderscoreboard (g3d_gui &g, scoregroup &sg, int fgcolor, int bgcolor)
 
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 TOKENHEIGHT = 5
 
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 
)
inlineinherited
virtual void game::clientmode::addplayer ( fpsent d)
inlinevirtualinherited
int collectmode_common::addscore ( int  team,
int  score 
)
inlineinherited
bool game::collectclientmode::aicheck ( fpsent d,
ai::aistate b 
)
overridevirtual
virtual bool game::clientmode::aidefend ( fpsent d,
ai::aistate b 
)
inlinevirtualinherited

Reimplemented in game::ctfclientmode, and game::captureclientmode.

Referenced by ai::dodefend().

void game::collectclientmode::aifind ( fpsent d,
ai::aistate b,
vector< ai::interest > &  interests 
)
overridevirtual
bool game::collectclientmode::aipursue ( fpsent d,
ai::aistate b 
)
overridevirtual
void game::collectclientmode::baseeffect ( int  i,
int  team,
const vec from,
const vec to,
bool  showfrom = true,
bool  showto = true 
)
void game::collectclientmode::baseexplosion ( int  i,
int  team,
const vec loc 
)
void game::collectclientmode::checkitems ( fpsent d)
overridevirtual
int game::collectclientmode::clipconsole ( int  w,
int  h 
)
inlineoverridevirtual

Reimplemented from game::clientmode.

void game::collectclientmode::deposittokens ( fpsent d,
int  basenum,
int  deposited,
int  team,
int  score,
int  flags 
)
void game::collectclientmode::drawbaseblip ( fpsent d,
float  x,
float  y,
float  s,
int  i 
)
void game::collectclientmode::drawblip ( fpsent d,
float  x,
float  y,
float  s,
const vec pos,
float  size = 0.05f 
)
void game::collectclientmode::drawhud ( fpsent d,
int  w,
int  h 
)
overridevirtual
collectmode_common::token & game::collectclientmode::droptoken ( int  id,
const vec o,
int  team,
int  droptime 
)
collectmode_common::token * game::collectclientmode::droptoken ( fpsent d,
int  id,
const vec o,
int  team,
int  yaw,
int  n 
)
token& collectmode_common::droptoken ( const vec o,
int  team,
int  droptime 
)
inlineinherited
void game::collectclientmode::expiretoken ( int  id)
token* collectmode_common::findtoken ( int  id)
inlineinherited
virtual void game::clientmode::gameconnect ( fpsent d)
inlinevirtualinherited

Reimplemented in game::bombclientmode.

virtual void game::clientmode::gameover ( )
inlinevirtualinherited

Referenced by game::timeupdate().

virtual int game::clientmode::getteamscore ( const char *  team)
inlinevirtualinherited

Referenced by game::groupplayers().

int collectmode_common::getteamscore ( const char *  team)
inlineinherited
virtual void game::clientmode::getteamscores ( vector< teamscore > &  scores)
inlinevirtualinherited

Referenced by game::getbestteams().

void collectmode_common::getteamscores ( vector< teamscore > &  tscores)
inlineinherited
virtual bool game::clientmode::hidefrags ( )
inlinevirtualinherited
bool collectmode_common::hidefrags ( )
inlineinherited
bool collectmode_common::insidebase ( const base b,
const vec o 
)
inlineinherited
virtual bool game::clientmode::isinvisible ( fpsent d)
inlinevirtualinherited

Reimplemented in game::hideandseekclientmode.

Referenced by game::rendergame().

virtual void game::clientmode::killed ( fpsent d,
fpsent actor 
)
inlinevirtualinherited

Reimplemented in game::hideandseekclientmode, and game::bombclientmode.

Referenced by game::killed().

vec game::collectclientmode::movetoken ( const vec o,
int  yaw 
)
bool game::collectclientmode::parse_network_message ( int  type,
ucharbuf p 
)
overridevirtual
void game::collectclientmode::parsetokens ( ucharbuf p,
bool  commit 
)
void game::collectclientmode::pickspawn ( fpsent d)
inlineoverridevirtual

Reimplemented from game::clientmode.

References collectteambase, findplayerspawn(), and fpsent::team.

void game::collectclientmode::preload ( )
overridevirtual
virtual void game::clientmode::removeplayer ( fpsent d)
inlinevirtualinherited

Reimplemented in game::ctfclientmode.

Referenced by game::clientdisconnected().

bool collectmode_common::removetoken ( int  id)
inlineinherited

References loopv, and collectmode_common::tokens.

Referenced by expiretoken(), and taketoken().

void game::collectclientmode::rendergame ( )
overridevirtual
virtual void game::clientmode::renderscoreboard ( g3d_gui g,
scoregroup sg,
int  fgcolor,
int  bgcolor 
)
inlinevirtualinherited
void collectmode_common::resetbases ( )
inlineinherited
virtual void game::clientmode::respawned ( fpsent d)
inlinevirtualinherited
int game::collectclientmode::respawnwait ( fpsent d)
inlineoverridevirtual
void game::collectclientmode::senditems ( packetbuf p)
overridevirtual
int collectmode_common::setscore ( int  team,
int  score 
)
inlineinherited

References collectmode_common::scores.

Referenced by deposittokens(), and stealtoken().

void game::collectclientmode::setup ( )
overridevirtual
void game::collectclientmode::stealtoken ( fpsent d,
int  id,
const vec o,
int  team,
int  yaw,
int  n,
int  basenum,
int  enemyteam,
int  score 
)
void game::collectclientmode::taketoken ( fpsent d,
int  id,
int  total 
)
int collectmode_common::totalscore ( int  team)
inlineinherited

Member Data Documentation

const int collectmode_common::BASEHEIGHT = 16
staticinherited
const int collectmode_common::BASERADIUS = 16
staticinherited
vector<base> collectmode_common::bases
inherited
const int collectmode_common::EXPIRETOKENTIME = 10000
staticinherited
const int collectmode_common::MAXBASES = 20
staticinherited
int collectmode_common::nexttoken
inherited
const int collectmode_common::RESPAWNSECS = 5
staticinherited
const int collectmode_common::SCORELIMIT = 50
staticinherited
int collectmode_common::scores[2]
inherited
const int collectmode_common::STEALTOKENTIME = 5000
staticinherited
const int collectmode_common::TOKENDIST = 16
staticinherited

Referenced by movetoken().

const int game::collectclientmode::TOKENHEIGHT = 5
static
const int collectmode_common::TOKENLIMIT = 5
staticinherited
const int collectmode_common::TOKENRADIUS = 16
staticinherited

Referenced by checkitems().

vector<token> collectmode_common::tokens
inherited
const int collectmode_common::UNOWNEDTOKENLIMIT = 15
staticinherited

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