#define __PORTABLE_H__
#include "moving_object.hpp"
+#include "direction.hpp"
/**
* An object that inherits from this object is considered "portable" and can
/**
* called each frame when the object has been grabbed.
*/
- virtual void grab(MovingObject& object, const Vector& pos) = 0;
+ virtual void grab(MovingObject& object, const Vector& pos, Direction dir) = 0;
- /** called when object isn't grabbed anymore */
- virtual void ungrab(MovingObject& object)
- {
- (void) object;
- }
+ virtual void ungrab(MovingObject& , Direction )
+ {}
};
#endif