1 #ifndef BLANK_SHARED_CLICONTEXT_HPP_
2 #define BLANK_SHARED_CLICONTEXT_HPP_
14 explicit CLIContext(Player *p = nullptr)
17 /// check if this context associates a player
18 bool HasPlayer() { return player; }
19 /// get the player responsible for all this
20 /// only valid if HasPlayer() returns true
21 Player &GetPlayer() { return *player; }
23 /// an error has happened and the player should be notified
24 virtual void Error(const std::string &) = 0;
27 /// use this for output concerning the originator of a command
28 virtual void Message(const std::string &) = 0;
30 /// send a status message to all players
31 /// use this to announce stuff which may be interesting to anyone
32 virtual void Broadcast(const std::string &) = 0;