Finally wrote the monster manager API

This commit is contained in:
Kayne Ruse
2015-05-08 23:17:35 +10:00
parent 07faf1b96b
commit 102ba18b7b
7 changed files with 98 additions and 7 deletions
+14 -1
View File
@@ -21,10 +21,23 @@
*/
#include "monster_data.hpp"
MonsterData::MonsterData(): Entity("monster") {
MonsterData::MonsterData(std::string _avatar, int _scriptRef):
Entity("monster"),
avatar(_avatar),
scriptRef(_scriptRef)
{
//EMPTY
}
void MonsterData::Update() {
Entity::Update();
//TODO: (0) call the script reference
}
//-------------------------
//accessors & mutators
//-------------------------
std::string MonsterData::SetAvatar(std::string s) {
return avatar = s;
}