#include <monsterinfo.h>
This includes the name of the monster, the sprite to display and the sounds the monster makes.
Definition at line 52 of file monsterinfo.h.
Public Member Functions | |
MonsterInfo () | |
~MonsterInfo () | |
void | setName (const std::string &name) |
void | addSprite (const std::string &filename) |
void | setTargetCursorSize (Being::TargetCursorSize targetCursorSize) |
void | addSound (MonsterSoundEvent event, const std::string &filename) |
void | addParticleEffect (const std::string &filename) |
const std::string & | getName () const |
const std::list< std::string > & | getSprites () const |
Being::TargetCursorSize | getTargetCursorSize () const |
const std::string & | getSound (MonsterSoundEvent event) const |
void | addMonsterAttack (int id, const std::string &particleEffect, SpriteAction action) |
const std::string & | getAttackParticleEffect (int attackType) const |
SpriteAction | getAttackAction (int attackType) const |
const std::list< std::string > & | getParticleEffects () const |
Private Attributes | |
std::string | mName |
std::list< std::string > | mSprites |
Being::TargetCursorSize | mTargetCursorSize |
std::map< MonsterSoundEvent, std::vector< std::string > * > | mSounds |
std::map< int, MonsterAttack * > | mMonsterAttacks |
std::list< std::string > | mParticleEffects |
MonsterInfo::MonsterInfo | ( | ) |
Definition at line 26 of file monsterinfo.cpp.
MonsterInfo::~MonsterInfo | ( | ) |
Definition at line 30 of file monsterinfo.cpp.
void MonsterInfo::setName | ( | const std::string & | name | ) | [inline] |
Definition at line 59 of file monsterinfo.h.
void MonsterInfo::addSprite | ( | const std::string & | filename | ) | [inline] |
Definition at line 61 of file monsterinfo.h.
void MonsterInfo::setTargetCursorSize | ( | Being::TargetCursorSize | targetCursorSize | ) | [inline] |
Definition at line 64 of file monsterinfo.h.
void MonsterInfo::addSound | ( | MonsterSoundEvent | event, | |
const std::string & | filename | |||
) |
Definition at line 38 of file monsterinfo.cpp.
void MonsterInfo::addParticleEffect | ( | const std::string & | filename | ) |
Definition at line 82 of file monsterinfo.cpp.
const std::string& MonsterInfo::getName | ( | ) | const [inline] |
Definition at line 71 of file monsterinfo.h.
const std::list<std::string>& MonsterInfo::getSprites | ( | ) | const [inline] |
Definition at line 74 of file monsterinfo.h.
Being::TargetCursorSize MonsterInfo::getTargetCursorSize | ( | ) | const [inline] |
Definition at line 77 of file monsterinfo.h.
const std::string & MonsterInfo::getSound | ( | MonsterSoundEvent | event | ) | const |
Definition at line 48 of file monsterinfo.cpp.
void MonsterInfo::addMonsterAttack | ( | int | id, | |
const std::string & | particleEffect, | |||
SpriteAction | action | |||
) |
Definition at line 72 of file monsterinfo.cpp.
const std::string & MonsterInfo::getAttackParticleEffect | ( | int | attackType | ) | const |
Definition at line 57 of file monsterinfo.cpp.
SpriteAction MonsterInfo::getAttackAction | ( | int | attackType | ) | const |
Definition at line 65 of file monsterinfo.cpp.
const std::list<std::string>& MonsterInfo::getParticleEffects | ( | ) | const [inline] |
Definition at line 90 of file monsterinfo.h.
std::string MonsterInfo::mName [private] |
Definition at line 94 of file monsterinfo.h.
std::list<std::string> MonsterInfo::mSprites [private] |
Definition at line 95 of file monsterinfo.h.
Definition at line 96 of file monsterinfo.h.
std::map<MonsterSoundEvent, std::vector<std::string>* > MonsterInfo::mSounds [private] |
Definition at line 97 of file monsterinfo.h.
std::map<int, MonsterAttack*> MonsterInfo::mMonsterAttacks [private] |
Definition at line 98 of file monsterinfo.h.
std::list<std::string> MonsterInfo::mParticleEffects [private] |
Definition at line 99 of file monsterinfo.h.