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

#include <gamemode_server.hpp>

Inheritance diagram for server::servmode:
server::bombservermode server::captureservermode server::collectservermode server::ctfservermode server::hideandseekservermode

Public Member Functions

virtual ~servmode ()
 
virtual void entergame (clientinfo *ci)
 
virtual void leavegame (clientinfo *ci, bool disconnecting=false)
 
virtual void connected (clientinfo *ci)
 
virtual void moved (clientinfo *ci, const vec &oldpos, bool oldclip, const vec &newpos, bool newclip)
 
virtual bool canspawn (clientinfo *ci, bool connecting=false)
 
virtual void spawned (clientinfo *ci)
 
virtual int fragvalue (clientinfo *victim, clientinfo *actor)
 
virtual bool canhit (clientinfo *victim, clientinfo *actor)
 
virtual void died (clientinfo *victim, clientinfo *actor)
 
virtual bool canchangeteam (clientinfo *ci, const char *oldteam, const char *newteam)
 
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 updatelimbo ()
 
virtual void cleanup ()
 
virtual void setup ()
 
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)
 
virtual bool parse_network_message (int type, clientinfo *ci, clientinfo *cq, packetbuf &p)=0
 process gamemode specific network messages. More...
 

Constructor & Destructor Documentation

virtual server::servmode::~servmode ( )
inlinevirtual

Member Function Documentation

virtual bool server::servmode::canchangeteam ( clientinfo ci,
const char *  oldteam,
const char *  newteam 
)
inlinevirtual
virtual bool server::servmode::canhit ( clientinfo victim,
clientinfo actor 
)
inlinevirtual

Reimplemented in server::hideandseekservermode.

Referenced by server::dodamage().

virtual bool server::servmode::canspawn ( clientinfo ci,
bool  connecting = false 
)
inlinevirtual
virtual void server::servmode::changeteam ( clientinfo ci,
const char *  oldteam,
const char *  newteam 
)
inlinevirtual
virtual void server::servmode::cleanup ( )
inlinevirtual
virtual void server::servmode::connected ( clientinfo ci)
inlinevirtual

Reimplemented in server::hideandseekservermode.

virtual void server::servmode::died ( clientinfo victim,
clientinfo actor 
)
inlinevirtual
virtual void server::servmode::entergame ( clientinfo ci)
inlinevirtual

Reimplemented in server::captureservermode.

Referenced by server::parsepacket().

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

Reimplemented in server::captureservermode.

Referenced by server::extinfoteamscore().

virtual int server::servmode::fragvalue ( clientinfo victim,
clientinfo actor 
)
inlinevirtual
virtual int server::servmode::getteamscore ( const char *  team)
inlinevirtual
virtual void server::servmode::getteamscores ( vector< teamscore > &  scores)
inlinevirtual

Referenced by server::extinfoteams().

virtual bool server::servmode::hidefrags ( )
inlinevirtual
virtual void server::servmode::initclient ( clientinfo ci,
packetbuf p,
bool  connecting 
)
inlinevirtual
virtual void server::servmode::intermission ( )
inlinevirtual
virtual void server::servmode::leavegame ( clientinfo ci,
bool  disconnecting = false 
)
inlinevirtual
virtual void server::servmode::moved ( clientinfo ci,
const vec oldpos,
bool  oldclip,
const vec newpos,
bool  newclip 
)
inlinevirtual

Reimplemented in server::captureservermode.

Referenced by server::parsepacket().

virtual void server::servmode::newmap ( )
inlinevirtual
virtual bool server::servmode::parse_network_message ( int  type,
clientinfo ci,
clientinfo cq,
packetbuf p 
)
pure virtual

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.

Implemented in server::captureservermode, server::hideandseekservermode, server::ctfservermode, server::collectservermode, and server::bombservermode.

Referenced by server::parsepacket().

virtual void server::servmode::setup ( )
inlinevirtual
virtual void server::servmode::spawned ( clientinfo ci)
inlinevirtual

Reimplemented in server::captureservermode.

Referenced by server::parsepacket().

virtual void server::servmode::update ( )
inlinevirtual
virtual void server::servmode::updatelimbo ( )
inlinevirtual

Reimplemented in server::bombservermode.

Referenced by server::serverupdate().


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