Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
bomb_client.hpp
Go to the documentation of this file.
1 #pragma once
2 #include "inexor/client/gamemode/gamemode_client.hpp" // for clientmode
3 #include "inexor/fpsgame/fpsent.hpp" // for fpsent
4 #include "inexor/gamemode/bomb_common.hpp" // for bombmode
5 #include "inexor/network/legacy/buffer_types.hpp" // for packetbuf (ptr...
6 #include "inexor/shared/ents.hpp" // for ::CS_SPECTATOR
7 
8 struct g3d_gui;
9 struct scoregroup;
10 struct vec;
11 
12 namespace game {
13 
15 {
17 
18  void setup() override
19  {
20  myspawnloc = -1;
21  }
22 
23  void senditems(packetbuf &p) override;
24 
25  void drawicon(int icon, float x, float y, float sz);
26 
27  void drawblip(fpsent *d, float x, float y, float s, const vec &pos, float size_factor);
28 
29  void drawhud(fpsent *d, int w, int h) override;
30 
32 
33  void rendergame() override
34  {
36  }
37 
38  void renderscoreboard(g3d_gui &g, scoregroup &sg, int fgcolor, int bgcolor) override;
39 
40  void killed(fpsent *d, fpsent *actor) override;
41 
42  void gameconnect(fpsent *d) override
43  {
44  d->deaths++;
45  d->state = CS_SPECTATOR;
46  }
47 
48  void pickspawn(fpsent *d) override;
49 
50  bool parse_network_message(int type, ucharbuf &p) override;
51 };
52 
53 extern bombclientmode bombmode;
54 
55 
56 } // ns game
Definition: gamemode_client.hpp:25
void pickspawn(fpsent *d) override
Definition: bomb_client.cpp:245
template implementation of buffers (networking e.g.).
Definition: buffer_types.hpp:14
void setup() override
Definition: bomb_client.hpp:18
bombclientmode bombmode
Definition: client.cpp:209
void senditems(packetbuf &p) override
Definition: bomb_client.cpp:126
Definition: bomb_client.hpp:14
Definition: 3dgui.hpp:52
bool parse_network_message(int type, ucharbuf &p) override
Parse game mode specific network messages.
Definition: bomb_client.cpp:255
void gameconnect(fpsent *d) override
Definition: bomb_client.hpp:42
Definition: bomb_common.hpp:13
vector with 3 floats and some useful methods.
Definition: geom.hpp:110
void killed(fpsent *d, fpsent *actor) override
Definition: bomb_client.cpp:235
int d
Definition: octaedit.cpp:1749
void drawhud(fpsent *d, int w, int h) override
Definition: bomb_client.cpp:43
network packet buffer
Definition: buffer_types.hpp:132
void renderscoreboard(g3d_gui &g, scoregroup &sg, int fgcolor, int bgcolor) override
Definition: bomb_client.cpp:151
Definition: fpsent.hpp:12
Definition: ents.hpp:120
void drawblip(fpsent *d, float x, float y, float s, const vec &pos, float size_factor)
Definition: bomb_client.cpp:204
int myspawnloc
Definition: bomb_client.hpp:16
int deaths
Definition: fpsent.hpp:25
uchar state
Definition: ents.hpp:144
Used only for the scoreboard.
Definition: teaminfo.hpp:80
static map entities ("entity") and dynamic entities (players/monsters, "dynent") the gamecode extends...
void renderplayersposindicator()
Definition: bomb_client.cpp:217
void rendergame() override
Definition: bomb_client.hpp:33
void drawicon(int icon, float x, float y, float sz)
Definition: bomb_client.cpp:191