Spellcheck and added comments
This commit is contained in:
@@ -24,14 +24,15 @@ private:
|
||||
CommandParser parser;
|
||||
nlohmann::json json;
|
||||
fs::path filePath = "Resources/Rooms.json";
|
||||
|
||||
std::ifstream stream;
|
||||
|
||||
// Likely need to make sure Player is ADDED to room
|
||||
// We want player and objects to exist IN room
|
||||
Room currentRoom;
|
||||
|
||||
public:
|
||||
Game();
|
||||
|
||||
static bool GetIsActive() { return isActive; }
|
||||
|
||||
bool Init();
|
||||
void ChangeRoom(Direction dir);
|
||||
void Run();
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
#include <fstream>
|
||||
#include <ios>
|
||||
#include <iostream>
|
||||
|
||||
#include "game.h"
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
Game game; // Calls default constructor which Initalizes GAME
|
||||
Game game; // Calls default constructor which Initializes GAME
|
||||
|
||||
while (game.GetIsActive()) {
|
||||
while (Game::GetIsActive()) {
|
||||
game.Run();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user