From 359918127b0861ca3c908501807ee227faccf7ff Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Sun, 20 Oct 2013 13:10:21 +0200 Subject: Rewritten MobTypesManager not to leak memory. --- source/MobTypesManager.h | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'source/MobTypesManager.h') diff --git a/source/MobTypesManager.h b/source/MobTypesManager.h index 6fc8bcfeb..ce50ab4b0 100644 --- a/source/MobTypesManager.h +++ b/source/MobTypesManager.h @@ -15,9 +15,9 @@ class cFastRandom; /** This class aggregates static functions about mob types: - - create a mob from its type (as enum) (in that way it is a compiler-proxy for mobs) - - transform MobTypes from enums to string and vice versa - - return mob family from given type + - create a mob from its type (as enum) (in that way it is a compiler-proxy for mobs) + - transform MobTypes from enums to string and vice versa + - return mob family from given type */ class cMobTypesManager { @@ -34,19 +34,6 @@ public: asserts if invalid size for mobs that need size */ static cMonster * NewMonsterFromType(cMonster::eType a_MobType, int a_Size = -1); - -protected : - typedef const std::map tMobTypes2Names; - static tMobTypes2Names& m_MobsTypes2Names(void); - static tMobTypes2Names MobTypes2NamesInitializerBeforeCx11(void); - - typedef const std::map tMobType2Family; - static tMobType2Family& m_MobsType2Family(void); - static tMobType2Family MobType2FamilyInitializerBeforeCx11(void); - - static cFastRandom & m_Random(void); - -public : } ; -- cgit v1.2.3