Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/objecthierarchy/src/network/ClientConnectionListener.cc @ 1949

Last change on this file since 1949 was 1949, checked in by rgrieder, 16 years ago

Moved all showsGraphics, hasServer, etc. functions from Settings class to Core class.
This was necessary to avoid circular dependencies.

  • Property svn:eol-style set to native
File size: 547 bytes
Line 
1#include "ClientConnectionListener.h"
2#include "core/CoreIncludes.h"
3#include "core/Core.h"
4
5namespace network{
6
7  ClientConnectionListener::ClientConnectionListener()
8  { 
9    RegisterRootObject(ClientConnectionListener); 
10  }
11
12  void ClientConnectionListener::getConnectedClients(){
13    if(orxonox::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.