Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 8, 2010, 1:49:39 PM (13 years ago)
Author:
smerkli
Message:

Before conversion of masterserver from module to library

File:
1 copied

Legend:

Unmodified
Added
Removed
  • code/branches/masterserver/src/orxonox/gamestates/GSMasterServer.cc

    r7725 r7727  
    2121 *
    2222 *   Author:
    23  *      Reto Grieder
     23 *      Sandro 'smerkli' Merkli
    2424 *   Co-authors:
    25  *      Fabian 'x3n' Landau
     25 *      Reto Grieder (original file for GSServer.cc)
     26 *      Fabian 'x3n' Landau (original file for GSServer.cc)
    2627 *
    2728 */
    2829
    29 #include "GSServer.h"
     30#include "GSMasterServer.h"
    3031
    3132#include "util/Debug.h"
     
    3738namespace orxonox
    3839{
    39     DeclareGameState(GSServer, "server", false, false);
     40    DeclareGameState(GSMasterServer, "masterserver", false, false);
    4041
    41     SetCommandLineArgument(port, 55556).shortcut("p").information("Network communication port to be used 0-65535 (default: 55556)");
     42    SetCommandLineArgument(port, 55566).shortcut("p").information("Network communication port to be used 0-65535 (default: 55566)");
    4243
    43     GSServer::GSServer(const GameStateInfo& info)
     44    GSMasterServer::GSMasterServer(const GameStateInfo& info)
    4445        : GameState(info)
    4546        , server_(0)
     
    4748    }
    4849
    49     GSServer::~GSServer()
     50    GSMasterServer::~GSMasterServer()
    5051    {
    5152    }
    5253
    53     void GSServer::activate()
     54    void GSMasterServer::activate()
    5455    {
    5556        GameMode::setIsServer(true);
     
    6162    }
    6263
    63     void GSServer::deactivate()
     64    void GSMasterServer::deactivate()
    6465    {
    6566        this->server_->close();
     
    6970    }
    7071
    71     void GSServer::update(const Clock& time)
     72    void GSMasterServer::update(const Clock& time)
    7273    {
    7374        server_->update(time);
Note: See TracChangeset for help on using the changeset viewer.