Code design struggle ~ Help!

Howdy guys,

Just started programming in c++, in terms of language/ syntax, everything is fine. My greatest issue with programming is designing the code flow/ system...

I am currently making a text adventure shooter called counterstrike 3 (kek) where the player has to progress through rooms filled with enemies in order to save a hostage by returning the back to the room in which you start. You can also buy guns at the start room.

I've got a bunch of classes such as amd they're set up in a heirachy stemming from the GameManager. Basically I keep getting stuck on how I should go about designing an effective 'System' that will loop my functions as the players go through rooms, fighting enemies, etc. In other words, class heirachy is looking good, function structure not looking so good.

I don't need a direct answer, but perhaps someone could direct me to some info about the problem I am having (designing code systems, etc). I think I have a very under-developed way of thinking in this systematic way and it's important I improve upon it asap!

I will greatly appreciate any answers!
Last edited on
I would create a "game" class, where you abstract the rules, points to win, rounds, games in a round, game types (a sperate class) etc...
Last edited on
Topic archived. No new replies allowed.