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
server::bombservermode Struct Reference

#include <bomb_server.hpp>

Inheritance diagram for server::bombservermode:
server::servmode bombmode

Public Member Functions

void setup () override
 
bool parsespawnloc (ucharbuf &p, bool commit)
 
void updatelimbo () override
 
void leavegame (clientinfo *ci, bool disconnecting) override
 
void sendspawnlocs (bool resuscitate=false)
 
bool gamerunning ()
 
bool canspawn (clientinfo *ci, bool connecting) override
 
void pushentity (int type, vec o)
 
void died (clientinfo *target, clientinfo *actor) override
 
bool canchangeteam (clientinfo *ci, const char *oldteam, const char *newteam) override
 
void cleanup () override
 
bool parse_network_message (int type, clientinfo *ci, clientinfo *cq, packetbuf &p) override
 process gamemode specific network messages. More...
 
virtual void entergame (clientinfo *ci)
 
virtual void connected (clientinfo *ci)
 
virtual void moved (clientinfo *ci, const vec &oldpos, bool oldclip, const vec &newpos, bool newclip)
 
virtual void spawned (clientinfo *ci)
 
virtual int fragvalue (clientinfo *victim, clientinfo *actor)
 
virtual bool canhit (clientinfo *victim, clientinfo *actor)
 
virtual void changeteam (clientinfo *ci, const char *oldteam, const char *newteam)
 
virtual void initclient (clientinfo *ci, packetbuf &p, bool connecting)
 
virtual void update ()
 
virtual void newmap ()
 
virtual void intermission ()
 
virtual bool hidefrags ()
 
virtual int getteamscore (const char *team)
 
virtual void getteamscores (vector< teamscore > &scores)
 
virtual bool extinfoteam (const char *team, ucharbuf &p)
 

Public Attributes

bool notgotspawnlocations
 
vector< spawnloc * > spawnlocs
 
int sequence
 
int timecounter
 
int countdown
 

Static Public Attributes

static constexpr int COUNTDOWNSECONDS = 3
 

Member Function Documentation

bool server::bombservermode::canchangeteam ( clientinfo ci,
const char *  oldteam,
const char *  newteam 
)
overridevirtual

Reimplemented from server::servmode.

References bombteamname, and m_teammode.

virtual bool server::servmode::canhit ( clientinfo victim,
clientinfo actor 
)
inlinevirtualinherited

Reimplemented in server::hideandseekservermode.

Referenced by server::dodamage().

bool server::bombservermode::canspawn ( clientinfo ci,
bool  connecting 
)
overridevirtual
virtual void server::servmode::changeteam ( clientinfo ci,
const char *  oldteam,
const char *  newteam 
)
inlinevirtualinherited
void server::bombservermode::cleanup ( )
inlineoverridevirtual
virtual void server::servmode::connected ( clientinfo ci)
inlinevirtualinherited

Reimplemented in server::hideandseekservermode.

void server::bombservermode::died ( clientinfo target,
clientinfo actor 
)
overridevirtual
virtual void server::servmode::entergame ( clientinfo ci)
inlinevirtualinherited

Reimplemented in server::captureservermode.

Referenced by server::parsepacket().

virtual bool server::servmode::extinfoteam ( const char *  team,
ucharbuf p 
)
inlinevirtualinherited

Reimplemented in server::captureservermode.

Referenced by server::extinfoteamscore().

virtual int server::servmode::fragvalue ( clientinfo victim,
clientinfo actor 
)
inlinevirtualinherited
bool server::bombservermode::gamerunning ( )

References server::clients, and recorder::state.

Referenced by canspawn().

virtual int server::servmode::getteamscore ( const char *  team)
inlinevirtualinherited
virtual void server::servmode::getteamscores ( vector< teamscore > &  scores)
inlinevirtualinherited

Referenced by server::extinfoteams().

virtual bool server::servmode::hidefrags ( )
inlinevirtualinherited
virtual void server::servmode::initclient ( clientinfo ci,
packetbuf p,
bool  connecting 
)
inlinevirtualinherited
virtual void server::servmode::intermission ( )
inlinevirtualinherited
void server::bombservermode::leavegame ( clientinfo ci,
bool  disconnecting 
)
overridevirtual

Reimplemented from server::servmode.

References server::clientinfo::clientnum, loopv, and spawnlocs.

virtual void server::servmode::moved ( clientinfo ci,
const vec oldpos,
bool  oldclip,
const vec newpos,
bool  newclip 
)
inlinevirtualinherited

Reimplemented in server::captureservermode.

Referenced by server::parsepacket().

virtual void server::servmode::newmap ( )
inlinevirtualinherited
bool server::bombservermode::parse_network_message ( int  type,
clientinfo ci,
clientinfo cq,
packetbuf p 
)
overridevirtual

process gamemode specific network messages.

Parameters
typethe N_ network message type
cithe sender.
cqthe currently focused player (sender or bot from senders pc)
pthe network packet containing the data
Returns
whether this messages got processed.

Implements server::servmode.

References server::clientinfo::clientmap, server::clientinfo::clientnum, CS_SPECTATOR, DISC_MSGERR, server::disconnect_client(), N_SPAWNLOC, parsespawnloc(), server::clientinfo::privilege, server::smapname, server::gamestate::state, and server::clientinfo::state.

bool server::bombservermode::parsespawnloc ( ucharbuf p,
bool  commit 
)
void server::bombservermode::pushentity ( int  type,
vec  o 
)
void server::bombservermode::sendspawnlocs ( bool  resuscitate = false)
void server::bombservermode::setup ( )
overridevirtual
virtual void server::servmode::spawned ( clientinfo ci)
inlinevirtualinherited

Reimplemented in server::captureservermode.

Referenced by server::parsepacket().

virtual void server::servmode::update ( )
inlinevirtualinherited
void server::bombservermode::updatelimbo ( )
overridevirtual

Member Data Documentation

int server::bombservermode::countdown

Referenced by setup(), and updatelimbo().

constexpr int server::bombservermode::COUNTDOWNSECONDS = 3
static

Referenced by setup(), and updatelimbo().

bool server::bombservermode::notgotspawnlocations
int server::bombservermode::sequence

Referenced by setup(), and updatelimbo().

vector<spawnloc*> server::bombservermode::spawnlocs
int server::bombservermode::timecounter

Referenced by setup(), and updatelimbo().


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