this is a game I've been building on since i started learning c++ about a year and a half ago. id like to integrate classes into it now in the form of making the planets in a sort of map linked together such as terra novus connects to noctus and rouge, rouge goes to noctus and aquilis aquilis links to ager and noctus goes to rouge and aquilis (and back again). with a certain number of random events between (once i get this part up im going to add some random effects to the dead space such as meteor storms for damage, or a commodedety gain so on) no like between novus and noctus theres minimum of 3 events and max of like 5. im about to this point in my books but they dont make any sence to me on using classes. code follows
The thing you need to do first is work out what the logical set of objects are for your game and how they interrelate.
Things that spring to mind from the description are;
Ship - Holds the data on a spaceship, methods to interact with other spaceships, move, etc.
Planet - Holds the data for a given planet, and methods to manipulate that data (such as adjusting current comodity values).
Space - A 'map' of the planets, and how they link together, methods to determine links, time for moving from one to another, etc.
If you are unsure, you might want to look at a less open-ended problem first to get a handle on objects then come back to this one when you are more familiar with them.