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

@ -8,7 +8,7 @@
#ifndef NETWORK_H_
#define NETWORK_H_
#include "game.h"
#include "Game.h"
#include "common.h"
#include <enet/enet.h>
@ -91,7 +91,7 @@ struct team_update_message_t {
class Network {
public:
Network(game_t *game);
Network(Game* game);
void initialize(const std::string &host);
void shutdown();
void dispatch(uint8_t *data, size_t length);
@ -99,7 +99,7 @@ public:
void sendGameUpdates();
void sendMessage(uint8_t *data, size_t length);
protected:
game_t *game;
Game *game;
ENetHost *host;
ENetPeer *client_peer;
};