Go to the documentation of this file.
47 virtual void draw(
const Point& dest,
float scaleFactor,
bool animate,
LightView *lightView =
nullptr);
54 void setName(
const std::string& name);
109 virtual int getExactSize(
int layer = 0,
int xPattern = 0,
int yPattern = 0,
int zPattern = 0,
int animationPhase = 0);
116 void jump(
int height,
int duration);
stdext::boolean< false > m_footStepDrawn
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
virtual Point getDisplacement()
void setSkullTexture(const std::string &filename)
void setDirection(Otc::Direction direction)
void setIconTexture(const std::string &filename)
virtual void onPositionChange(const Position &newPos, const Position &oldPos)
Color m_staticSquareColor
void addTimedSquare(uint8 color)
virtual int getDisplacementX()
void setLight(const Light &light)
ScheduledEventPtr m_outfitColorUpdateEvent
Position getLastStepToPosition()
virtual int getExactSize(int layer=0, int xPattern=0, int yPattern=0, int zPattern=0, int animationPhase=0)
virtual void onDisappear()
virtual int getDisplacementY()
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)
stdext::boolean< false > m_passable
virtual void nextWalkUpdate()
stdext::boolean< false > m_allowAppearWalk
void setTypeTexture(const std::string &filename)
void internalDrawOutfit(Point dest, float scaleFactor, bool animateWalk, bool animateIdle, Otc::Direction direction, LightView *lightView=nullptr)
TexturePtr m_skullTexture
ScheduledEventPtr m_walkUpdateEvent
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
virtual void updateWalkOffset(int totalPixelsWalked)
void setPassable(bool passable)
stdext::boolean< false > m_showTimedSquare
void setShieldTexture(const std::string &filename, bool blink)
Otc::Direction getDirection()
ticks_t getWalkTicksElapsed()
stdext::boolean< true > m_removed
std::array< double, Otc::LastSpeedFormula > getSpeedFormulaArray()
ScheduledEventPtr m_walkFinishAnimEvent
Otc::Direction m_direction
void showStaticSquare(const Color &color)
virtual void updateWalkAnimation(int totalPixelsWalked)
void setSpeedFormula(double speedA, double speedB, double speedC)
double getSpeedFormula(Otc::SpeedFormula formula)
@ VOLATILE_SQUARE_DURATION
virtual void draw(const Point &dest, float scaleFactor, bool animate, LightView *lightView=nullptr)
stdext::boolean< false > m_walking
ThingCategory getCategory() const
int getStepDuration(bool ignoreDiagonal=false, Otc::Direction dir=Otc::InvalidDirection)
Otc::Direction m_lastStepDirection
Otc::Direction m_walkTurnDirection
stdext::boolean< false > m_showStaticSquare
Position getLastStepFromPosition()
void setHealthPercent(uint8 healthPercent)
void setBaseSpeed(double baseSpeed)
void setOutfit(const Outfit &outfit)
stdext::boolean< false > m_shieldBlink
void setEmblem(uint8 emblem)
ThingType * rawGetThingType()
stdext::boolean< true > m_showShieldTexture
const ThingTypePtr & getThingType()