Encapsulated the Character class

This commit is contained in:
Kayne Ruse
2014-07-04 00:55:12 +10:00
parent 839c2af940
commit e946a0741d
12 changed files with 143 additions and 269 deletions
+4 -7
View File
@@ -38,8 +38,7 @@
#include "config_utility.hpp"
#include "frame_rate.hpp"
#include "combat_data.hpp"
#include "character_data.hpp"
#include "character.hpp"
//client
#include "base_scene.hpp"
@@ -56,8 +55,7 @@ public:
int* const argClientIndex,
int* const argAccountIndex,
int* const argCharacterIndex,
std::map<int, CombatData>* argCombatMap,
std::map<int, CharacterData>* argCharacterMap
CharacterMap* argCharacterMap
);
~InWorld();
@@ -101,8 +99,7 @@ protected:
int& clientIndex;
int& accountIndex;
int& characterIndex;
std::map<int, CombatData>& combatMap;
std::map<int, CharacterData>& characterMap;
CharacterMap& characterMap;
//graphics
Image buttonImage;
@@ -124,7 +121,7 @@ protected:
FrameRate fps;
//game
CharacterData* localCharacter = nullptr;
Character* localCharacter = nullptr;
};
#endif