- int x;
- int y;
- ObjectType type;
- T type_specific;
-
- ObjectData(ObjectData* pobject)
- : x((int)pobject->x), y((int)pobject->y), type(pobject->type), type_specific(pobject->type_specific) {};
- ObjectData(int x_, int y_, ObjectType type_, T type_specific_)
- : x(x_), y(y_), type(type_), type_specific(type_specific_) {};
-
- ObjectData()
- : x(0), y(0), type(OBJ_NONE), type_specific() {};
+public:
+ BouncyCoin(const Vector& pos);
+ ~BouncyCoin();
+ virtual void action(float elapsed_time);
+ virtual void draw(DrawingContext& context);
+
+private:
+ Sprite* sprite;
+ Vector position;
+ Timer2 timer;