|
Mana
|
Holds information about a certain type of monster. More...
#include <beinginfo.h>
Public Member Functions | |
| BeingInfo () | |
| ~BeingInfo () | |
| void | setTargetCursorSize (const std::string &size) |
| void | setHoverCursor (const std::string &cursorName) |
| void | addSound (SoundEvent event, const std::string &filename) |
| const std::string & | getSound (SoundEvent event) const |
| void | addAttack (int id, Attack attack) |
| const Attack & | getAttack (int id) const |
Public Attributes | |
| std::string | name |
| SpriteDisplay | display |
| ActorSprite::TargetCursorSize | targetCursorSize = ActorSprite::TC_MEDIUM |
| Cursor | hoverCursor = Cursor::Pointer |
| unsigned char | walkMask = Map::BLOCKMASK_ALL |
| Map::BlockType | blockType = Map::BLOCKTYPE_CHARACTER |
| bool | targetSelection = true |
Static Public Attributes | |
| static BeingInfo * | Unknown = createUnknownBeingInfo() |
Private Attributes | |
| std::map< SoundEvent, std::vector< std::string > > | mSounds |
| std::map< int, Attack > | mAttacks |
Holds information about a certain type of monster.
This includes the name of the monster, the sprite to display and the sounds the monster makes.
Definition at line 58 of file beinginfo.h.
|
default |
|
default |
| void BeingInfo::addAttack | ( | int | id, |
| Attack | attack | ||
| ) |
Definition at line 121 of file beinginfo.cpp.
| void BeingInfo::addSound | ( | SoundEvent | event, |
| const std::string & | filename | ||
| ) |
Definition at line 93 of file beinginfo.cpp.
| const Attack & BeingInfo::getAttack | ( | int | id | ) | const |
Definition at line 107 of file beinginfo.cpp.
| const std::string & BeingInfo::getSound | ( | SoundEvent | event | ) | const |
Definition at line 98 of file beinginfo.cpp.
| void BeingInfo::setHoverCursor | ( | const std::string & | cursorName | ) |
Definition at line 82 of file beinginfo.cpp.
| void BeingInfo::setTargetCursorSize | ( | const std::string & | size | ) |
Definition at line 71 of file beinginfo.cpp.
| Map::BlockType BeingInfo::blockType = Map::BLOCKTYPE_CHARACTER |
Definition at line 71 of file beinginfo.h.
| SpriteDisplay BeingInfo::display |
Definition at line 67 of file beinginfo.h.
| Cursor BeingInfo::hoverCursor = Cursor::Pointer |
Definition at line 69 of file beinginfo.h.
|
private |
Definition at line 85 of file beinginfo.h.
|
private |
Definition at line 84 of file beinginfo.h.
| std::string BeingInfo::name |
Definition at line 66 of file beinginfo.h.
| ActorSprite::TargetCursorSize BeingInfo::targetCursorSize = ActorSprite::TC_MEDIUM |
Definition at line 68 of file beinginfo.h.
| bool BeingInfo::targetSelection = true |
Definition at line 72 of file beinginfo.h.
|
static |
Definition at line 61 of file beinginfo.h.
| unsigned char BeingInfo::walkMask = Map::BLOCKMASK_ALL |
Definition at line 70 of file beinginfo.h.