17 #ifndef HEADER_SUPERTUX_OBJECT_PORTABLE_HPP 18 #define HEADER_SUPERTUX_OBJECT_PORTABLE_HPP 20 #include "supertux/direction.hpp" 21 #include "supertux/game_object_component.hpp" 39 virtual bool is_portable()
const {
return true; }
virtual bool is_hampering() const
Is the object so heavy/bulky/fragile that Tux can't run while carrying it?
Definition: portable.hpp:43
Simple two dimensional vector.
Definition: vector.hpp:24
virtual void grab(MovingObject &other, const Vector &pos, Direction dir)=0
called each frame when the object has been grabbed.
An object that inherits from this object is considered "portable" and can be carried around by the pl...
Definition: portable.hpp:29
Base class for all dynamic/moving game objects.
Definition: moving_object.hpp:31
Definition: game_object_component.hpp:20