Fixed several issues with Parser and enabled room navigation
This commit is contained in:
@@ -34,8 +34,8 @@ class Creature
|
||||
|
||||
bool IsAlive() { return GetHealth() > 0; }
|
||||
|
||||
void PrintDescription() { printf("%s\n", description); }
|
||||
void PrintName() { printf("%s\n", name); }
|
||||
void PrintDescription() { printf("%s\n", description.data()); }
|
||||
void PrintName() { printf("%s\n", name.data()); }
|
||||
|
||||
virtual ~Creature() = default;
|
||||
};
|
||||
|
||||
@@ -15,8 +15,8 @@ void PlayerEditor::Edit()
|
||||
{
|
||||
|
||||
printf("Options: %s\n");
|
||||
for (auto &command : commands.begin())
|
||||
/*for (const auto &command : commands.begin())
|
||||
{
|
||||
printf("%s\n", command.c_str());
|
||||
}
|
||||
printf("%s\n", command);
|
||||
}*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user