aboutsummaryrefslogtreecommitdiff
path: root/src/trinityrealm/RealmList.h
diff options
context:
space:
mode:
authormaximius <none@none>2009-10-17 15:35:07 -0700
committermaximius <none@none>2009-10-17 15:35:07 -0700
commit26b5e033ffde3d161382fc9addbfa99738379641 (patch)
treea344f369ca32945f787a02dee35c3dbe342bed7e /src/trinityrealm/RealmList.h
parentf21f47005dcb6b76e1abc9f35fbcd03eed191bff (diff)
*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget --HG-- branch : trunk
Diffstat (limited to 'src/trinityrealm/RealmList.h')
-rw-r--r--src/trinityrealm/RealmList.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/trinityrealm/RealmList.h b/src/trinityrealm/RealmList.h
index 25f0c01da14..9939bb39921 100644
--- a/src/trinityrealm/RealmList.h
+++ b/src/trinityrealm/RealmList.h
@@ -17,16 +17,12 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
/// \addtogroup realmd
/// @{
/// \file
-
#ifndef _REALMLIST_H
#define _REALMLIST_H
-
#include "Common.h"
-
/// Storage object for a realm
struct Realm
{
@@ -40,22 +36,16 @@ struct Realm
float populationLevel;
uint32 gamebuild;
};
-
/// Storage object for the list of realms on the server
class RealmList
{
public:
typedef std::map<std::string, Realm> RealmMap;
-
RealmList();
~RealmList() {}
-
void Initialize(uint32 updateInterval);
-
void UpdateIfNeed();
-
void AddRealm(Realm NewRealm) {m_realms[NewRealm.name] = NewRealm;}
-
RealmMap::const_iterator begin() const { return m_realms.begin(); }
RealmMap::const_iterator end() const { return m_realms.end(); }
uint32 size() const { return m_realms.size(); }