Added LocalCharacter & BaseMonster

This commit is contained in:
Kayne Ruse
2014-10-10 06:32:53 +11:00
parent 7c4762852b
commit 1761134839
7 changed files with 130 additions and 22 deletions
+5 -19
View File
@@ -19,29 +19,24 @@
* 3. This notice may not be removed or altered from any source
* distribution.
*/
#ifndef CHARACTER_HPP_
#define CHARACTER_HPP_
#ifndef BASECHARACTER_HPP_
#define BASECHARACTER_HPP_
//components
#include "character_defines.hpp"
#include "renderable.hpp"
#include "statistics.hpp"
//std namespace
#include <string>
#include <cmath>
class Character : public Renderable {
class BaseCharacter : public Renderable {
public:
Character() = default;
~Character() = default;
BaseCharacter() = default;
virtual ~BaseCharacter() = default;
//graphics
void CorrectSprite();
//gameplay
Statistics* GetStats() { return &stats; }
//metadata
int SetOwner(int i) { return owner = i; }
int GetOwner() { return owner; }
@@ -51,19 +46,10 @@ public:
std::string GetAvatar() const { return avatar; }
private:
//base statistics
Statistics stats;
//gameplay components: equipment, items, buffs, debuffs...
//metadata
int owner;
std::string handle;
std::string avatar;
};
//tmp
#include <map>
typedef std::map<int, Character> CharacterMap;
#endif