Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/network/ClientConnectionListener.cc @ 2171

Last change on this file since 2171 was 2171, checked in by landauf, 15 years ago

merged revisions 2111-2170 from objecthierarchy branch back to trunk.

  • Property svn:eol-style set to native
File size: 538 bytes
Line 
1#include "ClientConnectionListener.h"
2#include "core/CoreIncludes.h"
3#include "core/Core.h"
4
5namespace orxonox{
6
7  ClientConnectionListener::ClientConnectionListener()
8  { 
9    RegisterRootObject(ClientConnectionListener); 
10  }
11
12  void ClientConnectionListener::getConnectedClients(){
13    if(Core::showsGraphics())
14      this->clientConnected(0); //server client id
15    ClientInformation *client = ClientInformation::getBegin();
16    while(client){
17      this->clientConnected(client->getID());
18      client=client->next();
19    }
20  }
21
22}
23
24
Note: See TracBrowser for help on using the repository browser.