move game to c++
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user