Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 20, 2009, 8:47:08 PM (16 years ago)
Author:
adrfried
Message:

some ggz things

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ggz/src/orxonox/gamestates/GSClient.cc

    r2171 r3000  
    2424 *   Co-authors:
    2525 *      Fabian 'x3n' Landau
     26 *      Adrian Friedli
    2627 *
    2728 */
     
    5354        Core::setIsClient(true);
    5455
     56#ifdef HAS_GGZ
     57        ggzClient = NULL;
     58        if (GGZClient::isActive()) {
     59            COUT(3) << "Initializing GGZ\n";
     60            ggzClient = new GGZClient;
     61        }
     62        else {
     63            COUT(3) << "Not using GGZ\n";
     64        }
     65#else  /* HAS_GGZ */
     66        COUT(3) << "GGZ support disabled\n";
     67#endif /* HAS_GGZ */
     68
    5569        this->client_ = new Client(CommandLine::getValue("ip").getString(), CommandLine::getValue("port"));
    5670
     
    6983        client_->closeConnection();
    7084
     85#ifdef HAS_GGZ
     86        if (ggzClient)
     87        {
     88            delete ggzClient;
     89        }
     90#endif /* HAS_GGZ */
     91
    7192        // destroy client
    7293        delete this->client_;
Note: See TracChangeset for help on using the changeset viewer.