Closed thatcherty closed 2 months ago
while (Cockpit.get_status() != 1) { Hallway.loop(); switch (Hallway.get_choice()) { case 'a': player.set_location() = ENGINE_ROOM; EngineRoom.loop(); break; case 'b': player.set_location() = COCKPIT; Cockpit.loop(); break; case ...: break; default: Hallway.movement(); break; } }
void cockpit(&game_win, enigne_room.get_status(), player.get_copilot()) { output narrative; check conditions; return no value }
class Hallway { public: void movement(&char); private: char playerChoice; } void Hallway::loop(char &playerChoice) { output movement options; input validation; take player input > choice; }
Proposed Conventions
Classes
Game Loop Requirements
Important Game methods
While Loop
Function idea
Class idea