Go to the documentation of this file.
49 virtual void draw(
const Point& dest,
float scaleFactor,
int reDrawFlags,
LightView* lightView =
nullptr);
57 void setName(
const std::string& name);
110 int getExactSize(
int layer = 0,
int xPattern = 0,
int yPattern = 0,
int zPattern = 0,
int animationPhase = 0)
override;
120 void jump(
int height,
int duration);
224 int diagonalDuration = 0;
229 StepCache m_stepCache;
236 bool isNpc()
override {
return true; }
void turn(Otc::Direction direction)
virtual void terminateWalk()
void setShield(uint8 shield)
Position m_lastStepFromPosition
void drawOutfit(const Rect &destRect, bool resize)
void setEmblemTexture(const std::string &filename)
EventPtr m_disappearEvent
void updateDynamicInformation(bool update)
void setSkullTexture(const std::string &filename)
void setDirection(Otc::Direction direction)
void internalDrawOutfit(Point dest, float scaleFactor, bool animateWalk, Otc::Direction direction)
stdext::boolean< false > m_updateDynamicInformation
bool updateDynamicInformation() const
int getExactSize(int layer=0, int xPattern=0, int yPattern=0, int zPattern=0, int animationPhase=0) override
void setIconTexture(const std::string &filename)
void onPositionChange(const Position &newPos, const Position &oldPos) override
Color m_staticSquareColor
virtual void updateWalkAnimation()
void addTimedSquare(uint8 color)
void setLight(const Light &light)
ScheduledEventPtr m_outfitColorUpdateEvent
Position getLastStepToPosition()
bool isMonster() override
void setSkull(uint8 skull)
void drawInformation(const Point &point, bool useGray, const Rect &parentRect, int drawFlags)
virtual void updateWalk()
TexturePtr m_emblemTexture
Position m_lastStepToPosition
void setOutfitColor(const Color &color, int duration)
int getCurrentAnimationPhase(bool mount=false)
stdext::boolean< false > m_passable
virtual void nextWalkUpdate()
stdext::boolean< false > m_allowAppearWalk
void setTypeTexture(const std::string &filename)
TexturePtr m_skullTexture
ScheduledEventPtr m_walkUpdateEvent
int m_calculatedStepSpeed
virtual void walk(const Position &oldPos, const Position &newPos)
void setName(const std::string &name)
void setSpeed(uint16 speed)
void jump(int height, int duration)
std::array< double, Otc::LastSpeedFormula > m_speedFormula
void updateOutfitColor(Color color, Color finalColor, Color delta, int duration)
TexturePtr m_shieldTexture
Light getLight() override
virtual void updateWalkOffset(int totalPixelsWalked)
void setPassable(bool passable)
void setId(uint32 id) override
stdext::boolean< false > m_showTimedSquare
void setShieldTexture(const std::string &filename, bool blink)
const ThingTypePtr & getThingType() override
Otc::Direction getDirection()
ticks_t getWalkTicksElapsed()
stdext::boolean< true > m_removed
std::array< double, Otc::LastSpeedFormula > getSpeedFormulaArray()
int getTotalAnimationPhase()
int getDisplacementX() override
ScheduledEventPtr m_walkFinishAnimEvent
Otc::Direction m_direction
void showStaticSquare(const Color &color)
@ VOLATILE_SQUARE_DURATION
ThingType * rawGetThingType() override
stdext::boolean< false > m_walking
Point getDisplacement() override
ThingCategory getCategory() const
int getStepDuration(bool ignoreDiagonal=false, Otc::Direction dir=Otc::InvalidDirection)
Otc::Direction m_lastStepDirection
Otc::Direction m_walkTurnDirection
static bool isDiagonal(const Otc::Direction dir)
stdext::boolean< false > m_showStaticSquare
void onDisappear() override
Position getLastStepFromPosition()
ThingType * rawGetMountThingType()
void setHealthPercent(uint8 healthPercent)
virtual void draw(const Point &dest, float scaleFactor, int reDrawFlags, LightView *lightView=nullptr)
void setBaseSpeed(double baseSpeed)
void setOutfit(const Outfit &outfit)
stdext::boolean< false > m_shieldBlink
void setEmblem(uint8 emblem)
int getDisplacementY() override
stdext::boolean< true > m_showShieldTexture
bool isCreature() override