Added LocalCharacter & BaseMonster
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user