move game to c++

This commit is contained in:
gmueller
2011-01-18 21:52:05 +01:00
parent bf00db6c68
commit 1d0dd12b2e
11 changed files with 492 additions and 489 deletions

View File

@@ -364,7 +364,7 @@ void Client::initialize(Arguments &arg) {
exit(EXIT_FAILURE);
}
game_setup_explosion_callback(&game, explosion_callback, 0);
game.setup_explosion_callback(explosion_callback, 0);
setup_opengl();
setup_explosion();
quadratic = gluNewQuadric();
@@ -372,8 +372,8 @@ void Client::initialize(Arguments &arg) {
gluQuadricTexture(quadratic, GL_TRUE);
if (isMaster()) {
team_t *team = game_team(&game, 0);
game.local_player = game_spawn_player(&game, team);
team_t *team = game.getTeam(0);
game.local_player = game.spawn_player(team);
}
size_t i;

View File

@@ -11,7 +11,6 @@
#include "Application.h"
#include "Schedule.h"
#include "oglfont.h"
#include "game.h"
class Client: public Application {
public: