Added copy operators for game's static instance
Player CommandParser can be swapped but not copied.
This commit is contained in:
@@ -22,6 +22,13 @@ public:
|
||||
std::vector<std::string> Verb(std::stringstream &sentences);
|
||||
std::vector<std::string> Noun(std::stringstream &sentences);
|
||||
|
||||
inline friend void swap(CommandParser& lhs, CommandParser& rhs)
|
||||
{
|
||||
using std::swap;
|
||||
swap(lhs.commands, rhs.commands);
|
||||
}
|
||||
|
||||
|
||||
static inline void CommandUnrecognized() { printf("I don't know how to do that.\n"); }
|
||||
int Parse();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user