17 lines
363 B
C++
17 lines
363 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
#include "bettola/network/socket.h"
|
|
#include "player.h"
|
|
|
|
class Game {
|
|
public:
|
|
Player* add_player(BettolaLib::Network::Socket* socket);
|
|
void remove_player(unsigned int player_id);
|
|
void update_player_pos(unsigned int player_id, float x, float y);
|
|
void broadcast_game_state(void);
|
|
|
|
private:
|
|
std::vector<Player> _players;
|
|
};
|