--- a/src/GameState.hh Tue Jan 20 23:24:04 2009 +0200
+++ b/src/GameState.hh Tue Jan 20 23:30:18 2009 +0200
@@ -25,9 +25,25 @@
class GameState {
public:
+ /**
+ * All active players
+ */
std::list<Player*> player_list;
+
+ /**
+ * All active projectiles
+ */
std::list<Projectile*> projectiles;
+
+ /**
+ * Our world simulation
+ */
PhysicsWorld world;
+
+ /**
+ * Our terrain
+ */
+ Terrain &terrain;
/**
* The one LocalPlayer that *we* control
@@ -42,11 +58,11 @@
public:
/**
- * ...
- *
- * This should take some arguments
+ * Create the game world, using the given terrain
+ *
+ * @param terrain the world's terrain
*/
- GameState (void);
+ GameState (Terrain &terrain);
/**
* Set event handler, only one can be set