Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9033 in orxonox.OLD for branches/multi_player_map/src/story_entities


Ignore:
Timestamp:
Jul 3, 2006, 1:43:29 PM (18 years ago)
Author:
rennerc
Message:

starting network games from menu works now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/multi_player_map/src/story_entities/menu/game_menu.cc

    r9029 r9033  
    3838
    3939#include "glgui_text.h"
     40
     41#include "network_manager.h"
    4042
    4143//! This creates a Factory to fabricate a GameMenu
     
    564566  PRINTF(0)("Connecting to %s\n", this->ipInputLine->_getText().c_str() );
    565567 
    566   //TODO connect :D
     568  State::setOnline(true);
     569  NetworkManager::getInstance()->establishConnection( this->ipInputLine->_getText(), 9999 );
     570 
     571  this->startLevel( 5 );
    567572}
    568573
     
    571576  PRINTF(0)("Create server\n" );
    572577 
    573   //TODO create server :D
    574 }
    575 
    576 
    577 
     578  State::setOnline(true);
     579  NetworkManager::getInstance()->createServer( 9999 );
     580 
     581  this->startLevel( 5 );
     582}
     583
     584
     585
Note: See TracChangeset for help on using the changeset viewer.