Orxonox  0.0.5 Codename: Arcturus
WANDiscoverable.h
Go to the documentation of this file.
1 /*
2  * ORXONOX - the hottest 3D action shooter ever to exist > www.orxonox.net <
3  *
4  *
5  * License notice:
6  *
7  * This program is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU General Public License as published by the Free
9  * Software Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * This program is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15  * for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program; if not, write to the Free Software Foundation, Inc., 51
19  * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  *
21  * Author:
22  * Sandro 'smerkli' Merkli
23  * Co-authors:
24  * Oliver Scheuss (original)
25  *
26  */
27 
28 #ifndef _WANDiscoverable_H__
29 #define _WANDiscoverable_H__
30 
31 #include "NetworkPrereqs.h"
33 #include "MasterServerComm.h"
34 #include <OgreStringConverter.h>
35 
36 namespace orxonox
37 {
38 
40  {
41  public:
44 
46  ~WANDiscoverable();
47 
53  { return this->msaddress; }
54 
56  void setConfigValues();
57 
59  void setActivity( bool bActive );
60 
61  void updateClientNumber(int clientNumber);
62 
65 
66  private:
68  bool connect();
69 
71  void disconnect();
72 
76  bool bActive_;
77 
78  };
79 
80 }
81 
82 #endif // _WANDiscoverable_H__
Shared library macros, enums, constants and forward declarations for the network library ...
Definition: MasterServerComm.h:43
std::string getMSAddress()
Definition: WANDiscoverable.h:52
::std::string string
Definition: gtest-port.h:756
This is the base class of all objects which may contain config values.
Definition: Configurable.h:47
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
#define _NetworkExport
Definition: NetworkPrereqs.h:59
MasterServerComm msc
Master server communications object.
Definition: WANDiscoverable.h:64
Declaration of Configurable, the base class of all objects which may contain config values...
std::string msaddress
master server address
Definition: WANDiscoverable.h:74
std::string ownName
Definition: WANDiscoverable.h:75
Definition: WANDiscoverable.h:39
bool bActive_
Definition: WANDiscoverable.h:76