Last change
on this file since 9387 was
9387,
checked in by patrick, 18 years ago
|
bringing the max connection stuff down
|
File size:
1.1 KB
|
Rev | Line | |
---|
[6678] | 1 | /* |
---|
| 2 | orxonox - the future of 3D-vertical-scrollers |
---|
| 3 | |
---|
| 4 | Copyright (C) 2004 orx |
---|
| 5 | |
---|
| 6 | This program is free software; you can redistribute it and/or modify |
---|
| 7 | it under the terms of the GNU General Public License as published by |
---|
| 8 | the Free Software Foundation; either version 2, or (at your option) |
---|
| 9 | any later version. |
---|
| 10 | |
---|
| 11 | ### File Specific: |
---|
| 12 | main-programmer: Patrick Boenzli |
---|
| 13 | */ |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | #define DEBUG_MODULE_NETWORK |
---|
| 17 | |
---|
| 18 | #include "shared_network_data.h" |
---|
| 19 | #include "netdefs.h" |
---|
[9374] | 20 | #include "state.h" |
---|
[6678] | 21 | |
---|
[9387] | 22 | #include "debug.h" |
---|
[6678] | 23 | |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | SharedNetworkData* SharedNetworkData::singletonRef = NULL; |
---|
| 27 | |
---|
| 28 | /** |
---|
| 29 | * Standard constructor |
---|
| 30 | */ |
---|
| 31 | SharedNetworkData::SharedNetworkData() |
---|
| 32 | { |
---|
| 33 | /* set the class id for the base object */ |
---|
| 34 | this->setClassID(CL_SHARED_NETWORK_DATA, "SharedNetworkData"); |
---|
| 35 | |
---|
| 36 | this->hostID = -1; |
---|
| 37 | this->defaultSyncStream = NULL; |
---|
[9374] | 38 | |
---|
[9384] | 39 | // if( State::isOnline()) |
---|
| 40 | // this->newUniqueID = ProxySettings::getInstance()->getMaxPlayer() + 2; |
---|
| 41 | // else |
---|
[9387] | 42 | this->newUniqueID = NET_MAX_CONNECTIONS + 2; |
---|
[9347] | 43 | this->nodeType = NET_CLIENT; |
---|
[6678] | 44 | } |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | /** |
---|
| 48 | * Standard destructor |
---|
| 49 | */ |
---|
| 50 | SharedNetworkData::~SharedNetworkData() |
---|
[9110] | 51 | { |
---|
| 52 | SharedNetworkData::singletonRef = NULL; |
---|
| 53 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.