You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
461 B

#ifndef EFFECT_H
#define EFFECT_H
#include <framework/global.h>
#include "thing.h"
class Effect : public Thing
{
public:
Effect();
void draw(int x, int y);
void update(int elapsedTime);
bool finished() { return m_finished; }
const ThingAttributes& getAttributes();
EffectPtr asEffect() { return std::static_pointer_cast<Effect>(shared_from_this()); }
private:
int m_timer;
int m_animation;
bool m_finished;
};
#endif