Go to the documentation of this file.
32 PREWALK_TIMEOUT = 1000
47 void setHealth(
double health,
double maxHealth);
51 void setLevel(
double level,
double levelPercent);
52 void setMana(
double mana,
double maxMana);
53 void setMagicLevel(
double magicLevel,
double magicLevelPercent);
64 void setSpells(
const std::vector<int>& spells);
140 std::array<int, Otc::LastSkill> m_skillsLevel;
141 std::array<int, Otc::LastSkill> m_skillsBaseLevel;
142 std::array<int, Otc::LastSkill> m_skillsLevelPercent;
143 std::vector<int> m_spells;
151 double m_freeCapacity;
152 double m_totalCapacity;
155 double m_levelPercent;
159 double m_magicLevelPercent;
160 double m_baseMagicLevel;
163 double m_regenerationTime;
164 double m_offlineTrainingTime;
void setHealth(double health, double maxHealth)
double getMagicLevelPercent()
void setRegenerationTime(double regenerationTime)
double getBaseMagicLevel()
void cancelWalk(Otc::Direction direction=Otc::InvalidDirection)
bool canWalk(Otc::Direction direction)
void updateWalkOffset(int totalPixelsWalked)
void setMana(double mana, double maxMana)
void lockWalk(int millis=250)
void setLevel(double level, double levelPercent)
LocalPlayerPtr asLocalPlayer()
std::vector< int > getSpells()
bool autoWalk(const Position &destination)
void setKnown(bool known)
int getSkillBaseLevel(Otc::Skill skill)
void setInventoryItem(Otc::InventorySlot inventory, const ItemPtr &item)
bool hasSight(const Position &pos)
void setBaseMagicLevel(double baseMagicLevel)
void preWalk(Otc::Direction direction)
void setMagicLevel(double magicLevel, double magicLevelPercent)
void setStates(int states)
void setPremium(bool premium)
void setExperience(double experience)
void setSoul(double soul)
virtual void onPositionChange(const Position &newPos, const Position &oldPos)
void setVocation(int vocation)
void setOfflineTrainingTime(double offlineTrainingTime)
void setTotalCapacity(double totalCapacity)
double getRegenerationTime()
double getOfflineTrainingTime()
void setBaseSkill(Otc::Skill skill, int baseLevel)
void setStamina(double stamina)
void setSpells(const std::vector< int > &spells)
ItemPtr getInventoryItem(Otc::InventorySlot inventory)
int getSkillLevelPercent(Otc::Skill skill)
void setBlessings(int blessings)
void walk(const Position &oldPos, const Position &newPos)
void setFreeCapacity(double freeCapacity)
double getTotalCapacity()
int getSkillLevel(Otc::Skill skill)
void setPendingGame(bool pending)
void setSkill(Otc::Skill skill, int level, int levelPercent)