ManaPlus
|
#include <beinginfo.h>
Public Member Functions | |
BeingInfo () | |
~BeingInfo () | |
void | setName (const std::string &name) |
const std::string & | getName () const |
void | setDisplay (const SpriteDisplay &display) |
const SpriteDisplay & | getDisplay () const |
void | setTargetCursorSize (const std::string &size) |
void | setTargetCursorSize (const TargetCursorSizeT &targetSize) |
void | setHoverCursor (const std::string &name) |
void | setHoverCursor (const CursorT &cursor) |
CursorT | getHoverCursor () const |
TargetCursorSizeT | getTargetCursorSize () const |
void | addSound (const ItemSoundEvent::Type event, const std::string &filename, const int delay) |
const SoundInfo & | getSound (const ItemSoundEvent::Type event) const |
void | addAttack (const int id, const std::string &action, const std::string &skyAttack, const std::string &waterAttack, const std::string &rideAttack, const int effectId, const int hitEffectId, const int criticalHitEffectId, const int missEffectId, const std::string &missileParticle, const float missileZ, const float missileSpeed, const float missileDieDistance, const int missileLifeTime) |
const Attack * | getAttack (const int id) const |
void | setBlockWalkMask (const unsigned char mask) |
unsigned char | getBlockWalkMask () const |
void | setBlockType (const BlockTypeT &blockType) |
BlockTypeT | getBlockType () const |
void | setTargetOffsetX (const int n) |
int | getTargetOffsetX () const |
void | setTargetOffsetY (const int n) |
int | getTargetOffsetY () const |
void | setNameOffsetX (const int n) |
int | getNameOffsetX () const |
void | setNameOffsetY (const int n) |
int | getNameOffsetY () const |
void | setHpBarOffsetX (const int n) |
int | getHpBarOffsetX () const |
void | setHpBarOffsetY (const int n) |
int | getHpBarOffsetY () const |
void | setMaxHP (const int n) |
int | getMaxHP () const |
bool | isStaticMaxHP () const |
void | setStaticMaxHP (const bool n) |
void | setTargetSelection (const bool n) |
bool | isTargetSelection () const |
int | getSortOffsetY () const |
void | setSortOffsetY (const int n) |
int | getDeadSortOffsetY () const |
void | setDeadSortOffsetY (const int n) |
BeingTypeId | getAvatarId () const |
void | setAvatarId (const BeingTypeId id) |
int | getWidth () const |
int | getHeight () const |
void | setWidth (const int n) |
void | setHeight (const int n) |
void | setStartFollowDist (const int n) |
int | getStartFollowDist () const |
void | setFollowDist (const int n) |
int | getFollowDist () const |
void | setWalkSpeed (const int n) |
int | getWalkSpeed () const |
void | setWarpDist (const int n) |
int | getWarpDist () const |
void | setSitOffsetX (const int n) |
int | getSitOffsetX () const |
void | setSitOffsetY (const int n) |
int | getSitOffsetY () const |
void | setMoveOffsetX (const int n) |
int | getMoveOffsetX () const |
void | setMoveOffsetY (const int n) |
int | getMoveOffsetY () const |
void | setDeadOffsetX (const int n) |
int | getDeadOffsetX () const |
void | setDeadOffsetY (const int n) |
int | getDeadOffsetY () const |
void | setAttackOffsetX (const int n) |
int | getAttackOffsetX () const |
void | setAttackOffsetY (const int n) |
int | getAttackOffsetY () const |
void | setThinkTime (const int n) |
int | getThinkTime () const |
void | setDirectionType (const int n) |
int | getDirectionType () const |
void | setSitDirectionType (const int n) |
int | getSitDirectionType () const |
void | setDeadDirectionType (const int n) |
int | getDeadDirectionType () const |
void | setAttackDirectionType (const int n) |
int | getAttackDirectionType () const |
void | setAllowDelete (const bool b) |
int | getAllowDelete () const |
void | setAllowEquipment (const bool b) |
bool | getAllowEquipment () const |
void | setQuickActionEffectId (const int n) |
int | getQuickActionEffectId () const |
void | setColorsList (const std::string &name) |
std::string | getColor (const ItemColor idx) const |
void | addMenu (const std::string &name, const std::string &command) |
const std::vector< BeingMenuItem > & | getMenu () const A_CONST |
void | setString (const int idx, const std::string &value) |
std::string | getString (const int idx) const |
std::string | getCurrency () const |
void | setCurrency (const std::string &name) |
Static Public Member Functions | |
static void | init () |
static void | clear () |
Static Public Attributes | |
static BeingInfo * | unknown = 0 |
static Attack * | empty |
Private Attributes | |
SpriteDisplay | mDisplay |
std::string | mName |
TargetCursorSizeT | mTargetCursorSize |
CursorT | mHoverCursor |
ItemSoundEvents | mSounds |
Attacks | mAttacks |
std::vector< BeingMenuItem > | mMenu |
std::map< int, std::string > | mStrings |
std::string | mCurrency |
unsigned char | mBlockWalkMask |
BlockTypeT | mBlockType |
const std::map< ItemColor, ItemColorData > * | mColors |
int | mTargetOffsetX |
int | mTargetOffsetY |
int | mNameOffsetX |
int | mNameOffsetY |
int | mHpBarOffsetX |
int | mHpBarOffsetY |
int | mMaxHP |
int | mSortOffsetY |
int | mDeadSortOffsetY |
BeingTypeId | mAvatarId |
int | mWidth |
int | mHeight |
int | mStartFollowDist |
int | mFollowDist |
int | mWarpDist |
int | mWalkSpeed |
int | mSitOffsetX |
int | mSitOffsetY |
int | mMoveOffsetX |
int | mMoveOffsetY |
int | mDeadOffsetX |
int | mDeadOffsetY |
int | mAttackOffsetX |
int | mAttackOffsetY |
int | mThinkTime |
int | mDirectionType |
int | mSitDirectionType |
int | mDeadDirectionType |
int | mAttackDirectionType |
int | mQuickActionEffectId |
bool | mStaticMaxHP |
bool | mTargetSelection |
bool | mAllowDelete |
bool | mAllowEquipment |
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 53 of file beinginfo.h.
BeingInfo::BeingInfo | ( | ) |
Definition at line 61 of file beinginfo.cpp.
References SpriteReference::Empty, setDisplay(), and SpriteDisplay::sprites.
BeingInfo::~BeingInfo | ( | ) |
Definition at line 119 of file beinginfo.cpp.
References delete_all(), mAttacks, mDisplay, mSounds, and SpriteDisplay::sprites.
void BeingInfo::addAttack | ( | const int | id, |
const std::string & | action, | ||
const std::string & | skyAttack, | ||
const std::string & | waterAttack, | ||
const std::string & | rideAttack, | ||
const int | effectId, | ||
const int | hitEffectId, | ||
const int | criticalHitEffectId, | ||
const int | missEffectId, | ||
const std::string & | missileParticle, | ||
const float | missileZ, | ||
const float | missileSpeed, | ||
const float | missileDieDistance, | ||
const int | missileLifeTime | ||
) |
Definition at line 186 of file beinginfo.cpp.
References SkillType::Attack, and mAttacks.
Referenced by BeingCommon::readObjectNodes().
void BeingInfo::addMenu | ( | const std::string & | name, |
const std::string & | command | ||
) |
Definition at line 254 of file beinginfo.cpp.
References mMenu.
Referenced by NPCDB::loadXmlFile().
void BeingInfo::addSound | ( | const ItemSoundEvent::Type | event, |
const std::string & | filename, | ||
const int | delay | ||
) |
Definition at line 154 of file beinginfo.cpp.
References mSounds.
Referenced by BeingCommon::readObjectNodes().
|
static |
Definition at line 217 of file beinginfo.cpp.
|
inline |
|
inline |
const Attack * BeingInfo::getAttack | ( | const int | id | ) | const |
|
inline |
Definition at line 315 of file beinginfo.h.
References mAttackDirectionType.
Referenced by Being::updateBotDirection().
|
inline |
Definition at line 279 of file beinginfo.h.
References mAttackOffsetX.
Referenced by Being::botFixOffset().
|
inline |
Definition at line 285 of file beinginfo.h.
References mAttackOffsetY.
Referenced by Being::botFixOffset().
|
inline |
|
inline |
Definition at line 129 of file beinginfo.h.
References mBlockType.
Referenced by Being::getBlockType().
|
inline |
Gets the way the being is blocked by other objects
Definition at line 123 of file beinginfo.h.
References mBlockWalkMask.
Referenced by Being::getBlockWalkMask().
std::string BeingInfo::getColor | ( | const ItemColor | idx | ) | const |
|
inline |
|
inline |
Definition at line 309 of file beinginfo.h.
References mDeadDirectionType.
Referenced by Being::updateBotDirection().
|
inline |
Definition at line 267 of file beinginfo.h.
References mDeadOffsetX.
Referenced by Being::botFixOffset().
|
inline |
Definition at line 273 of file beinginfo.h.
References mDeadOffsetY.
Referenced by Being::botFixOffset().
|
inline |
|
inline |
Definition at line 297 of file beinginfo.h.
References mDirectionType.
Referenced by Being::updateBotDirection().
|
inline |
|
inline |
Definition at line 225 of file beinginfo.h.
References mFollowDist.
Referenced by Being::updateBotFollow().
|
inline |
|
inline |
Definition at line 87 of file beinginfo.h.
References mHoverCursor.
Referenced by Being::getHoverCursor().
|
inline |
|
inline |
|
inline |
Definition at line 171 of file beinginfo.h.
References mMaxHP.
Referenced by ElementalDb::loadXmlFile(), HomunculusDB::loadXmlFile(), MercenaryDB::loadXmlFile(), and MonsterDB::loadXmlFile().
const std::vector< BeingMenuItem > & BeingInfo::getMenu | ( | ) | const |
|
inline |
Definition at line 255 of file beinginfo.h.
References mMoveOffsetX.
Referenced by Being::botFixOffset().
|
inline |
Definition at line 261 of file beinginfo.h.
References mMoveOffsetY.
Referenced by Being::botFixOffset().
|
inline |
Definition at line 68 of file beinginfo.h.
References mName.
Referenced by BeingCommon::readObjectNodes(), and setTargetCursorSize().
|
inline |
Definition at line 147 of file beinginfo.h.
References mNameOffsetX.
Referenced by Being::showName(), and Being::updateCoords().
|
inline |
Definition at line 153 of file beinginfo.h.
References mNameOffsetY.
Referenced by Being::showName(), and Being::updateCoords().
|
inline |
|
inline |
Definition at line 303 of file beinginfo.h.
References mSitDirectionType.
Referenced by Being::updateBotDirection().
|
inline |
Definition at line 243 of file beinginfo.h.
References mSitOffsetX.
Referenced by Being::botFixOffset().
|
inline |
Definition at line 249 of file beinginfo.h.
References mSitOffsetY.
Referenced by Being::botFixOffset().
|
inline |
const SoundInfo & BeingInfo::getSound | ( | const ItemSoundEvent::Type | event | ) | const |
Definition at line 165 of file beinginfo.cpp.
|
inline |
Definition at line 219 of file beinginfo.h.
References mStartFollowDist.
Referenced by Being::updateBotFollow().
std::string BeingInfo::getString | ( | const int | idx | ) | const |
|
inline |
Definition at line 90 of file beinginfo.h.
References mTargetCursorSize.
Referenced by Being::getTargetCursorSize().
|
inline |
Definition at line 135 of file beinginfo.h.
References mTargetOffsetX.
Referenced by Being::botFixOffset(), Being::drawBeingCursor(), and Being::getTargetOffsetX().
|
inline |
Definition at line 141 of file beinginfo.h.
References mTargetOffsetY.
Referenced by Being::botFixOffset(), Being::drawBeingCursor(), and Being::getTargetOffsetY().
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
Definition at line 223 of file beinginfo.cpp.
References empty, Configuration::getIntValue(), Attack::mCriticalHitEffectId, Attack::mEffectId, Attack::mHitEffectId, Attack::mMissEffectId, and paths.
Referenced by initEngines().
|
inline |
|
inline |
Definition at line 183 of file beinginfo.h.
References mTargetSelection.
Referenced by ActorManager::findBeingByPixel(), ActorManager::findBeingsByPixel(), and ActorManager::findNearestLivingBeing().
|
inline |
Definition at line 318 of file beinginfo.h.
References mAllowDelete.
Referenced by NPCDB::loadXmlFile().
|
inline |
Definition at line 324 of file beinginfo.h.
References mAllowEquipment.
Referenced by NPCDB::loadXmlFile().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 201 of file beinginfo.h.
References mAvatarId.
Referenced by NPCDB::loadXmlFile().
|
inline |
Definition at line 126 of file beinginfo.h.
References mBlockType.
Referenced by ElementalDb::loadXmlFile(), HomunculusDB::loadXmlFile(), MercenaryDB::loadXmlFile(), and MonsterDB::loadXmlFile().
|
inline |
void BeingInfo::setColorsList | ( | const std::string & | name | ) |
Definition at line 234 of file beinginfo.cpp.
References ColorDB::getColorsList(), and mColors.
Referenced by ElementalDb::loadXmlFile(), HomunculusDB::loadXmlFile(), MercenaryDB::loadXmlFile(), and MonsterDB::loadXmlFile().
|
inline |
Definition at line 353 of file beinginfo.h.
References mCurrency.
Referenced by NPCDB::loadXmlFile().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 195 of file beinginfo.h.
References mDeadSortOffsetY.
Referenced by ElementalDb::loadXmlFile(), HomunculusDB::loadXmlFile(), MercenaryDB::loadXmlFile(), MonsterDB::loadXmlFile(), NPCDB::loadXmlFile(), PETDB::loadXmlFile(), and SkillUnitDb::loadXmlFile().
|
inline |
void BeingInfo::setDisplay | ( | const SpriteDisplay & | display | ) |
Definition at line 127 of file beinginfo.cpp.
References mDisplay.
Referenced by BeingInfo(), AvatarDB::loadXmlFile(), ElementalDb::loadXmlFile(), HomunculusDB::loadXmlFile(), MercenaryDB::loadXmlFile(), MonsterDB::loadXmlFile(), NPCDB::loadXmlFile(), PETDB::loadXmlFile(), and SkillUnitDb::loadXmlFile().
|
inline |
|
inline |
Definition at line 213 of file beinginfo.h.
References mHeight.
Referenced by AvatarDB::loadXmlFile().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 168 of file beinginfo.h.
References mMaxHP.
Referenced by ElementalDb::loadXmlFile(), HomunculusDB::loadXmlFile(), MercenaryDB::loadXmlFile(), and MonsterDB::loadXmlFile().
|
inline |
|
inline |
|
inline |
Definition at line 65 of file beinginfo.h.
References mName.
Referenced by AvatarDB::loadXmlFile(), HomunculusDB::loadXmlFile(), MercenaryDB::loadXmlFile(), MonsterDB::loadXmlFile(), PETDB::loadXmlFile(), and SkillUnitDb::loadXmlFile().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 177 of file beinginfo.h.
References mStaticMaxHP.
Referenced by ElementalDb::loadXmlFile(), HomunculusDB::loadXmlFile(), MercenaryDB::loadXmlFile(), and MonsterDB::loadXmlFile().
|
inline |
Definition at line 344 of file beinginfo.h.
References mStrings.
Referenced by PETDB::loadXmlFile().
void BeingInfo::setTargetCursorSize | ( | const std::string & | size | ) |
Definition at line 132 of file beinginfo.cpp.
References getName(), TargetCursorSize::LARGE, Logger::log(), logger, TargetCursorSize::MEDIUM, EmoteDB::size(), and TargetCursorSize::SMALL.
|
inline |
|
inline |
Definition at line 132 of file beinginfo.h.
References mTargetOffsetX.
Referenced by AvatarDB::loadXmlFile().
|
inline |
Definition at line 138 of file beinginfo.h.
References mTargetOffsetY.
Referenced by AvatarDB::loadXmlFile().
|
inline |
Definition at line 180 of file beinginfo.h.
References mTargetSelection.
Referenced by NPCDB::loadXmlFile(), PETDB::loadXmlFile(), and SkillUnitDb::loadXmlFile().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 210 of file beinginfo.h.
References mWidth.
Referenced by AvatarDB::loadXmlFile().
|
static |
Definition at line 57 of file beinginfo.h.
Referenced by clear(), getAttack(), and init().
|
private |
Definition at line 405 of file beinginfo.h.
Referenced by getAllowDelete(), and setAllowDelete().
|
private |
Definition at line 406 of file beinginfo.h.
Referenced by getAllowEquipment(), and setAllowEquipment().
|
private |
Definition at line 401 of file beinginfo.h.
Referenced by getAttackDirectionType(), and setAttackDirectionType().
|
private |
Definition at line 395 of file beinginfo.h.
Referenced by getAttackOffsetX(), and setAttackOffsetX().
|
private |
Definition at line 396 of file beinginfo.h.
Referenced by getAttackOffsetY(), and setAttackOffsetY().
|
private |
Definition at line 366 of file beinginfo.h.
Referenced by addAttack(), getAttack(), and ~BeingInfo().
|
private |
Definition at line 382 of file beinginfo.h.
Referenced by getAvatarId(), and setAvatarId().
|
private |
Definition at line 371 of file beinginfo.h.
Referenced by getBlockType(), and setBlockType().
|
private |
Definition at line 370 of file beinginfo.h.
Referenced by getBlockWalkMask(), and setBlockWalkMask().
|
private |
Definition at line 372 of file beinginfo.h.
Referenced by getColor(), and setColorsList().
|
private |
Definition at line 369 of file beinginfo.h.
Referenced by getCurrency(), and setCurrency().
|
private |
Definition at line 400 of file beinginfo.h.
Referenced by getDeadDirectionType(), and setDeadDirectionType().
|
private |
Definition at line 393 of file beinginfo.h.
Referenced by getDeadOffsetX(), and setDeadOffsetX().
|
private |
Definition at line 394 of file beinginfo.h.
Referenced by getDeadOffsetY(), and setDeadOffsetY().
|
private |
Definition at line 381 of file beinginfo.h.
Referenced by getDeadSortOffsetY(), and setDeadSortOffsetY().
|
private |
Definition at line 398 of file beinginfo.h.
Referenced by getDirectionType(), and setDirectionType().
|
private |
Definition at line 361 of file beinginfo.h.
Referenced by getDisplay(), setDisplay(), and ~BeingInfo().
|
private |
Definition at line 386 of file beinginfo.h.
Referenced by getFollowDist(), and setFollowDist().
|
private |
Definition at line 384 of file beinginfo.h.
Referenced by getHeight(), and setHeight().
|
private |
Definition at line 364 of file beinginfo.h.
Referenced by getHoverCursor(), and setHoverCursor().
|
private |
Definition at line 377 of file beinginfo.h.
Referenced by getHpBarOffsetX(), and setHpBarOffsetX().
|
private |
Definition at line 378 of file beinginfo.h.
Referenced by getHpBarOffsetY(), and setHpBarOffsetY().
|
private |
Definition at line 379 of file beinginfo.h.
Referenced by getMaxHP(), and setMaxHP().
|
private |
Definition at line 367 of file beinginfo.h.
|
private |
Definition at line 391 of file beinginfo.h.
Referenced by getMoveOffsetX(), and setMoveOffsetX().
|
private |
Definition at line 392 of file beinginfo.h.
Referenced by getMoveOffsetY(), and setMoveOffsetY().
|
private |
Definition at line 362 of file beinginfo.h.
|
private |
Definition at line 375 of file beinginfo.h.
Referenced by getNameOffsetX(), and setNameOffsetX().
|
private |
Definition at line 376 of file beinginfo.h.
Referenced by getNameOffsetY(), and setNameOffsetY().
|
private |
Definition at line 402 of file beinginfo.h.
Referenced by getQuickActionEffectId(), and setQuickActionEffectId().
|
private |
Definition at line 399 of file beinginfo.h.
Referenced by getSitDirectionType(), and setSitDirectionType().
|
private |
Definition at line 389 of file beinginfo.h.
Referenced by getSitOffsetX(), and setSitOffsetX().
|
private |
Definition at line 390 of file beinginfo.h.
Referenced by getSitOffsetY(), and setSitOffsetY().
|
private |
Definition at line 380 of file beinginfo.h.
Referenced by getSortOffsetY(), and setSortOffsetY().
|
private |
Definition at line 365 of file beinginfo.h.
Referenced by addSound(), getSound(), and ~BeingInfo().
|
private |
Definition at line 385 of file beinginfo.h.
Referenced by getStartFollowDist(), and setStartFollowDist().
|
private |
Definition at line 403 of file beinginfo.h.
Referenced by isStaticMaxHP(), and setStaticMaxHP().
|
private |
Definition at line 368 of file beinginfo.h.
Referenced by getString(), and setString().
|
private |
Definition at line 363 of file beinginfo.h.
Referenced by getTargetCursorSize(), and setTargetCursorSize().
|
private |
Definition at line 373 of file beinginfo.h.
Referenced by getTargetOffsetX(), and setTargetOffsetX().
|
private |
Definition at line 374 of file beinginfo.h.
Referenced by getTargetOffsetY(), and setTargetOffsetY().
|
private |
Definition at line 404 of file beinginfo.h.
Referenced by isTargetSelection(), and setTargetSelection().
|
private |
Definition at line 397 of file beinginfo.h.
Referenced by getThinkTime(), and setThinkTime().
|
private |
Definition at line 388 of file beinginfo.h.
Referenced by getWalkSpeed(), and setWalkSpeed().
|
private |
Definition at line 387 of file beinginfo.h.
Referenced by getWarpDist(), and setWarpDist().
|
private |
Definition at line 383 of file beinginfo.h.
Referenced by getWidth(), and setWidth().
|
static |
Definition at line 56 of file beinginfo.h.
Referenced by clear(), AvatarDB::get(), ElementalDb::get(), HomunculusDB::get(), MercenaryDB::get(), MonsterDB::get(), NPCDB::get(), PETDB::get(), SkillUnitDb::get(), and Client::loadData().