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

#include <bomb_client.hpp>

Inheritance diagram for game::bombclientmode:
game::clientmode bombmode

Public Member Functions

void setup () override
 
void senditems (packetbuf &p) override
 
void drawicon (int icon, float x, float y, float sz)
 
void drawblip (fpsent *d, float x, float y, float s, const vec &pos, float size_factor)
 
void drawhud (fpsent *d, int w, int h) override
 
void renderplayersposindicator ()
 
void rendergame () override
 
void renderscoreboard (g3d_gui &g, scoregroup &sg, int fgcolor, int bgcolor) override
 
void killed (fpsent *d, fpsent *actor) override
 
void gameconnect (fpsent *d) override
 
void pickspawn (fpsent *d) override
 
bool parse_network_message (int type, ucharbuf &p) override
 Parse game mode specific network messages. More...
 
virtual void preload ()
 
virtual int clipconsole (int w, int h)
 
virtual bool isinvisible (fpsent *d)
 
virtual void respawned (fpsent *d)
 
virtual void checkitems (fpsent *d)
 
virtual int respawnwait (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 void aifind (fpsent *d, ai::aistate &b, vector< ai::interest > &interests)
 
virtual bool aicheck (fpsent *d, ai::aistate &b)
 
virtual bool aidefend (fpsent *d, ai::aistate &b)
 
virtual bool aipursue (fpsent *d, ai::aistate &b)
 

Public Attributes

int myspawnloc
 

Member Function Documentation

virtual void game::clientmode::addplayer ( fpsent d)
inlinevirtualinherited
virtual bool game::clientmode::aicheck ( fpsent d,
ai::aistate b 
)
inlinevirtualinherited
virtual bool game::clientmode::aidefend ( fpsent d,
ai::aistate b 
)
inlinevirtualinherited

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

Referenced by ai::dodefend().

virtual void game::clientmode::aifind ( fpsent d,
ai::aistate b,
vector< ai::interest > &  interests 
)
inlinevirtualinherited
virtual bool game::clientmode::aipursue ( fpsent d,
ai::aistate b 
)
inlinevirtualinherited
virtual void game::clientmode::checkitems ( fpsent d)
inlinevirtualinherited
virtual int game::clientmode::clipconsole ( int  w,
int  h 
)
inlinevirtualinherited
void game::bombclientmode::drawblip ( fpsent d,
float  x,
float  y,
float  s,
const vec pos,
float  size_factor 
)
void game::bombclientmode::drawhud ( fpsent d,
int  w,
int  h 
)
overridevirtual
void game::bombclientmode::drawicon ( int  icon,
float  x,
float  y,
float  sz 
)

References bind_bomb_items_texture(), and HICON_BOMBRADIUS.

Referenced by drawhud().

void game::bombclientmode::gameconnect ( fpsent d)
inlineoverridevirtual

Reimplemented from game::clientmode.

References CS_SPECTATOR, fpsent::deaths, and physent::state.

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

Referenced by game::timeupdate().

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

Referenced by game::groupplayers().

virtual void game::clientmode::getteamscores ( vector< teamscore > &  scores)
inlinevirtualinherited

Referenced by game::getbestteams().

virtual bool game::clientmode::hidefrags ( )
inlinevirtualinherited
virtual bool game::clientmode::isinvisible ( fpsent d)
inlinevirtualinherited

Reimplemented in game::hideandseekclientmode.

Referenced by game::rendergame().

void game::bombclientmode::killed ( fpsent d,
fpsent actor 
)
overridevirtual
bool game::bombclientmode::parse_network_message ( int  type,
ucharbuf p 
)
overridevirtual

Parse game mode specific network messages.

Returns
true if message got handled.

Implements game::clientmode.

References getint(), myspawnloc, and N_SPAWNLOC.

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

Reimplemented in game::ctfclientmode.

Referenced by game::clientdisconnected().

void game::bombclientmode::rendergame ( )
inlineoverridevirtual

Reimplemented from game::clientmode.

References renderplayersposindicator().

void game::bombclientmode::renderplayersposindicator ( )
void game::bombclientmode::renderscoreboard ( g3d_gui g,
scoregroup sg,
int  fgcolor,
int  bgcolor 
)
overridevirtual
virtual void game::clientmode::respawned ( fpsent d)
inlinevirtualinherited
virtual int game::clientmode::respawnwait ( fpsent d)
inlinevirtualinherited
void game::bombclientmode::senditems ( packetbuf p)
overridevirtual
void game::bombclientmode::setup ( )
inlineoverridevirtual

Reimplemented from game::clientmode.

References myspawnloc.

Member Data Documentation

int game::bombclientmode::myspawnloc

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