namespace blank {
-class Player;
+class CLIContext;
class TokenStreamReader;
class World;
public:
struct Command {
virtual ~Command();
- virtual void Execute(CLI &, Player &, TokenStreamReader &) = 0;
+ virtual void Execute(CLI &, CLIContext &, TokenStreamReader &) = 0;
};
public:
void AddCommand(const std::string &name, Command *);
- void Execute(Player &, const std::string &);
+ void Execute(CLIContext &, const std::string &);
- void Message(const std::string &msg);
- void Error(const std::string &msg);
+ World &GetWorld() noexcept { return world; }
private:
World &world;