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

#include <hideandseek_server.hpp>

Inheritance diagram for server::hideandseekservermode:
server::servmode hideandseekmode

Classes

struct  seekersinfo
 

Public Member Functions

void setup () override
 
void initplayers ()
 
void initplayer (clientinfo *ci)
 
void initclient (clientinfo *ci, packetbuf &p, bool connecting) override
 
void connected (clientinfo *ci) override
 
void leavegame (clientinfo *ci, bool disconnecting) override
 
void cleanup () override
 
bool checkfinished ()
 
void update () override
 
void intermission () override
 
void spawned (fpsent *d)
 
bool canspawn (clientinfo *ci, bool connecting) override
 
bool canhit (clientinfo *target, clientinfo *actor) override
 
void died (clientinfo *target, clientinfo *actor) override
 
bool canchangeteam (clientinfo *ci, const char *oldteam, const char *newteam) override
 
void setseeker (clientinfo *ci)
 
void sethider (clientinfo *ci)
 
vector< clientinfo * > getactiveplayers ()
 
int getremaininghiders ()
 
bool isfreezed (clientinfo *ci)
 
void setfreezedstate (clientinfo *ci, bool state)
 
int getnonfreezedseekers ()
 
void announceseekers (char *msg)
 
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 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 void changeteam (clientinfo *ci, const char *oldteam, const char *newteam)
 
virtual void updatelimbo ()
 
virtual void newmap ()
 
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

vector< seekersinfo * > seekersinfos
 
int lastupdatecheck
 

Member Function Documentation

void server::hideandseekservermode::announceseekers ( char *  msg)
bool server::hideandseekservermode::canchangeteam ( clientinfo ci,
const char *  oldteam,
const char *  newteam 
)
inlineoverridevirtual

Reimplemented from server::servmode.

bool server::hideandseekservermode::canhit ( clientinfo target,
clientinfo actor 
)
overridevirtual

Reimplemented from server::servmode.

References ishider, isteam, and server::clientinfo::team.

bool server::hideandseekservermode::canspawn ( clientinfo ci,
bool  connecting 
)
inlineoverridevirtual

Reimplemented from server::servmode.

virtual void server::servmode::changeteam ( clientinfo ci,
const char *  oldteam,
const char *  newteam 
)
inlinevirtualinherited
bool server::hideandseekservermode::checkfinished ( )
void server::hideandseekservermode::cleanup ( )
inlineoverridevirtual

Reimplemented from server::servmode.

References seekersinfos.

void server::hideandseekservermode::connected ( clientinfo ci)
inlineoverridevirtual

Reimplemented from server::servmode.

References setseeker().

void server::hideandseekservermode::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
vector< clientinfo * > server::hideandseekservermode::getactiveplayers ( )
int server::hideandseekservermode::getnonfreezedseekers ( )

References loopv, and seekersinfos.

Referenced by checkfinished().

int server::hideandseekservermode::getremaininghiders ( )

References server::clients, ishider, and loopv.

Referenced by died().

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
void server::hideandseekservermode::initclient ( clientinfo ci,
packetbuf p,
bool  connecting 
)
inlineoverridevirtual

Reimplemented from server::servmode.

References setseeker().

void server::hideandseekservermode::initplayer ( clientinfo ci)
inline

References sethider().

Referenced by initplayers().

void server::hideandseekservermode::initplayers ( )
void server::hideandseekservermode::intermission ( )
inlineoverridevirtual

Reimplemented from server::servmode.

bool server::hideandseekservermode::isfreezed ( clientinfo ci)
void server::hideandseekservermode::leavegame ( clientinfo ci,
bool  disconnecting 
)
overridevirtual

Reimplemented from server::servmode.

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

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::hideandseekservermode::parse_network_message ( int  type,
clientinfo ci,
clientinfo cq,
packetbuf p 
)
inlineoverridevirtual

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.

void server::hideandseekservermode::setfreezedstate ( clientinfo ci,
bool  state 
)
void server::hideandseekservermode::sethider ( clientinfo ci)
void server::hideandseekservermode::setseeker ( clientinfo ci)
void server::hideandseekservermode::setup ( )
overridevirtual

Reimplemented from server::servmode.

References initplayers(), lastupdatecheck, seekersinfos, and totalmillis.

virtual void server::servmode::spawned ( clientinfo ci)
inlinevirtualinherited

Reimplemented in server::captureservermode.

Referenced by server::parsepacket().

void server::hideandseekservermode::spawned ( fpsent d)
inline
void server::hideandseekservermode::update ( )
overridevirtual
virtual void server::servmode::updatelimbo ( )
inlinevirtualinherited

Reimplemented in server::bombservermode.

Referenced by server::serverupdate().

Member Data Documentation

int server::hideandseekservermode::lastupdatecheck

Referenced by setup(), and update().

vector<seekersinfo*> server::hideandseekservermode::seekersinfos

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