Spellcheck and added comments
This commit is contained in:
@@ -24,14 +24,15 @@ private:
|
|||||||
CommandParser parser;
|
CommandParser parser;
|
||||||
nlohmann::json json;
|
nlohmann::json json;
|
||||||
fs::path filePath = "Resources/Rooms.json";
|
fs::path filePath = "Resources/Rooms.json";
|
||||||
|
|
||||||
std::ifstream stream;
|
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:
|
public:
|
||||||
Game();
|
Game();
|
||||||
|
|
||||||
static bool GetIsActive() { return isActive; }
|
static bool GetIsActive() { return isActive; }
|
||||||
|
|
||||||
bool Init();
|
bool Init();
|
||||||
void ChangeRoom(Direction dir);
|
void ChangeRoom(Direction dir);
|
||||||
void Run();
|
void Run();
|
||||||
|
|||||||
@@ -1,13 +1,9 @@
|
|||||||
#include <fstream>
|
|
||||||
#include <ios>
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
#include "game.h"
|
#include "game.h"
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
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();
|
game.Run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user