Added copy operators for game's static instance

Player
CommandParser can be swapped but not copied.
This commit is contained in:
2026-08-28 20:38:11 -05:00
parent ef54fa6609
commit 45c365e317
6 changed files with 99 additions and 12 deletions
+7
View File
@@ -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();
};