Hi cboard.
I have been working on a text adventure engine and I coudn't work it so I decided to scrap the whole thing and design a new one. All engines need a base class right?
Code:
class CGame_manager
{
public:
CGame_manager();
~CGame_manager();
protected:
};
......something like that? Well I obviously need functions etc. But I still need to design which functions to make.
Next thing that came to my mind was a game mode class. We obviously need to distiguish between game modes. I mean, you can't attack when looking in your inventory can you? Mayby a little something like this?
Code:
class CGame_mode
{
public:
CGame_mode();
~CGame_mode();
/*Havn't decided what i need here*/
protected:
std::vector<CGame_mode>CGame_states;
};
Then i thought that I need to manage the txt files that contain the storyline etc. How would I go about this?
I recently read a thread containing a Menu class, should I also design a Menu class?
Thats what I need help with, just getting the framework (if you want to call it that) set up so i can design the rest of my engine.
All help is appreciated.