Last change
on this file since 2557 was
2171,
checked in by landauf, 16 years ago
|
merged revisions 2111-2170 from objecthierarchy branch back to trunk.
|
-
Property svn:eol-style set to
native
|
File size:
538 bytes
|
Rev | Line | |
---|
[1938] | 1 | #include "ClientConnectionListener.h" |
---|
| 2 | #include "core/CoreIncludes.h" |
---|
[1949] | 3 | #include "core/Core.h" |
---|
[1938] | 4 | |
---|
[2171] | 5 | namespace orxonox{ |
---|
[1938] | 6 | |
---|
| 7 | ClientConnectionListener::ClientConnectionListener() |
---|
| 8 | { |
---|
| 9 | RegisterRootObject(ClientConnectionListener); |
---|
| 10 | } |
---|
| 11 | |
---|
| 12 | void ClientConnectionListener::getConnectedClients(){ |
---|
[2171] | 13 | if(Core::showsGraphics()) |
---|
[1939] | 14 | this->clientConnected(0); //server client id |
---|
[1938] | 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.