diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-07-06 11:21:21 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-07-06 11:21:21 +0000 |
| commit | 9d632dd826c8a312095de0f56df66b2580d336cb (patch) | |
| tree | 3fdde543c94323d6c698d278a58bf18e3c385776 /src/game/g_game.hpp | |
| parent | 3705064b109580103a3d13f44693503da9927281 (diff) | |
| download | zcatch-9d632dd826c8a312095de0f56df66b2580d336cb.tar.gz zcatch-9d632dd826c8a312095de0f56df66b2580d336cb.zip | |
major update. server clean up and much added documentation
Diffstat (limited to 'src/game/g_game.hpp')
| -rw-r--r-- | src/game/g_game.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game/g_game.hpp b/src/game/g_game.hpp index 7ab8df40..61342d76 100644 --- a/src/game/g_game.hpp +++ b/src/game/g_game.hpp @@ -7,7 +7,7 @@ #include <math.h> #include "g_math.hpp" #include "g_collision.hpp" -#include "g_protocol.hpp" +#include <game/generated/g_protocol.hpp> struct TUNING_PARAMS { @@ -114,14 +114,14 @@ class WORLD_CORE public: WORLD_CORE() { - mem_zero(players, sizeof(players)); + mem_zero(characters, sizeof(characters)); } TUNING_PARAMS tuning; - class PLAYER_CORE *players[MAX_CLIENTS]; + class CHARACTER_CORE *characters[MAX_CLIENTS]; }; -class PLAYER_CORE +class CHARACTER_CORE { public: WORLD_CORE *world; @@ -144,8 +144,8 @@ public: void tick(); void move(); - void read(const NETOBJ_PLAYER_CORE *obj_core); - void write(NETOBJ_PLAYER_CORE *obj_core); + void read(const NETOBJ_CHARACTER_CORE *obj_core); + void write(NETOBJ_CHARACTER_CORE *obj_core); void quantize(); }; |