Skip to content

Commit

Permalink
Server: Added a todo about needed future work (de::World class)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Feb 10, 2013
1 parent 4a76d5b commit 9de66d2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doomsday/server/src/shelluser.cpp
Expand Up @@ -104,6 +104,19 @@ void ShellUser::sendGameState()
de::Game *game = App_CurrentGame();
String mode = (game? Str_Text(game->identityKey()) : "");

/**
* @todo The server is not the right place to compose a packet about
* game state. Work needed:
* - World class that contains the game world as a whole
* - WorldFactory that produces various world and map related instances
* - Game plugins can extend the world with their own code (games can
* provide a Factory of their own for constructing world/map instances)
* - libcommon (i.e., libidtech1) needs an IdTech1World
*
* The server should just ask the World for the information for the game
* state packet.
*/

/// @todo This information needs to come form the Game Rules.
int deathmatch = Con_GetInteger("server-game-deathmatch");
String rules = (!deathmatch ? "Coop" :
Expand Down

0 comments on commit 9de66d2

Please sign in to comment.