Go to the documentation of this file.
35 if(m_animationTimer.
ticksElapsed() < m_timeToStartDrawing)
return;
55 rawGetThingType()->
draw(dest, scaleFactor, 0, xPattern, yPattern, 0, animationPhase, redrawFlag, lightView);
75 ticksPerFrame = m_duration;
89 m_timeToStartDrawing = (firstEffect->m_duration * .6) - firstEffect->m_animationTimer.ticksElapsed();
ThingType * rawGetThingType(uint16 id, ThingCategory category)
void startListenerPainter(const float duration)
EventDispatcher g_dispatcher
void setId(uint32 id) override
void waitFor(const EffectPtr &firstEffect)
ticks_t getTotalDuration()
ThingType * rawGetThingType() override
int getPhaseAt(ticks_t time)
const ThingTypePtr & getThingType() override
const ThingTypePtr & getThingType(uint16 id, ThingCategory category)
bool getFeature(Otc::GameFeature feature)
AnimatorPtr getAnimator()
void drawEffect(const Point &dest, float scaleFactor, int redrawFlag, LightView *lightView=nullptr)
void draw(const Point &dest, float scaleFactor, int layer, int xPattern, int yPattern, int zPattern, int animationPhase, int reDrawFlags=Otc::ReDrawThing, LightView *lightView=nullptr)
ScheduledEventPtr scheduleEvent(const std::function< void()> &callback, int delay)
ThingTypeManager g_things
bool removeThing(const ThingPtr &thing)
bool isValidDatId(uint16 id, ThingCategory category)