104 mSitDirectionType(1),
105 mDeadDirectionType(1),
106 mAttackDirectionType(1),
107 mQuickActionEffectId(-1),
109 mTargetSelection(true),
111 mAllowEquipment(false)
138 else if (
size ==
"medium")
142 else if (
size ==
"large")
148 logger->
log(
"Unknown target cursor type \"%s\" for %s - using medium "
155 const std::string &filename,
169 const ItemSoundEvents::const_iterator i =
mSounds.find(event);
175 if (vect ==
nullptr || vect->empty())
177 return vect->at(
CAST_SIZE(rand()) % vect->size());
182 const Attacks::const_iterator i =
mAttacks.find(
id);
187 const std::string &action,
188 const std::string &skyAction,
189 const std::string &waterAction,
190 const std::string &rideAction,
192 const int hitEffectId,
193 const int criticalHitEffectId,
194 const int missEffectId,
195 const std::string &missileParticle,
196 const float missileZ,
197 const float missileSpeed,
198 const float missileDieDistance,
199 const int missileLifeTime)
225 if (
empty !=
nullptr)
245 return std::string();
247 const std::map <ItemColor, ItemColorData>::const_iterator
250 return std::string();
251 return it->second.color;
266 const std::map<int, std::string>::const_iterator it =
mStrings.find(idx);
const BeingTypeId BeingTypeId_zero
void addSound(const ItemSoundEvent::Type event, const std::string &filename, const int delay)
std::map< int, std::string > mStrings
void setColorsList(const std::string &name)
std::vector< BeingMenuItem > mMenu
void setDisplay(const SpriteDisplay &display)
const std::map< ItemColor, ItemColorData > * mColors
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 std::string & getName() const
std::string getString(const int idx) const
void addMenu(const std::string &name, const std::string &command)
const std::vector< BeingMenuItem > & getMenu() const A_CONST
const SoundInfo & getSound(const ItemSoundEvent::Type event) const
static BeingInfo * unknown
std::string getColor(const ItemColor idx) const
const Attack * getAttack(const int id) const
void setTargetCursorSize(const std::string &size)
int getIntValue(const std::string &key) const
void log(const char *const log_text,...)
void delete_all(Container &c)
const std::map< ItemColor, ItemColorData > * getColorsList(const std::string &name)
static const std::string ATTACKWATER("attackwater")
static const std::string ATTACKSKY("attacksky")
static const std::string ATTACKRIDE("attackride")
static const std::string ATTACK("attack")
std::map< std::string, DyeColor > mColors
std::vector< std::string > mSounds
std::vector< SoundInfo > SoundInfoVect
std::vector< SpriteReference * > sprites
static SpriteReference * Empty