Remove non-functional methods from player.hpp.
Attempting to call them results in an error during linking, for example: undefined reference to `wesnothd::player::set_game(wesnothd::game*)'
This commit is contained in:
parent
0e6db05034
commit
3be0f751cc
2 changed files with 2 additions and 15 deletions
|
@ -21,8 +21,6 @@
|
|||
|
||||
namespace wesnothd {
|
||||
|
||||
class game;
|
||||
|
||||
class player
|
||||
{
|
||||
public:
|
||||
|
@ -52,19 +50,6 @@ public:
|
|||
|
||||
bool is_message_flooding();
|
||||
|
||||
/**
|
||||
* @return true iff the player is in a game
|
||||
*/
|
||||
bool in_game() const { return get_game() != nullptr; }
|
||||
|
||||
/**
|
||||
* @return a pointer to the game the player is in, or nullptr if he/she is not
|
||||
* in a game at the moment
|
||||
*/
|
||||
const game* get_game() const;
|
||||
|
||||
void set_game(game* g);
|
||||
|
||||
void set_moderator(bool moderator) { moderator_ = moderator; }
|
||||
bool is_moderator() const { return moderator_; }
|
||||
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
|
||||
namespace wesnothd
|
||||
{
|
||||
class game;
|
||||
|
||||
class player_record
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Add table
Reference in a new issue