Spellcheck and added comments

This commit is contained in:
Timothy O'Barr
2026-08-18 12:04:39 -05:00
parent db2cb3aeea
commit 707b88c736
2 changed files with 6 additions and 9 deletions
+4 -3
View File
@@ -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();
+2 -6
View File
@@ -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();
} }