18 #ifndef HEADER_SUPERTUX_OBJECT_ISPY_HPP 19 #define HEADER_SUPERTUX_OBJECT_ISPY_HPP 21 #include "object/sticky_object.hpp" 22 #include "supertux/direction.hpp" 32 virtual void update(
float dt_sec)
override;
33 static std::string class_name() {
return "ispy"; }
34 virtual std::string get_class_name()
const override {
return class_name(); }
35 static std::string display_name() {
return _(
"Ispy"); }
40 virtual void after_editor_set()
override;
42 virtual void on_flip(
float height)
override;
60 Ispy& operator=(
const Ispy&) =
delete;
virtual HitResponse collision(GameObject &other, const CollisionHit &hit) override
this function is called when the object collided with any other object
Definition: ispy.cpp:72
virtual void update(float dt_sec) override
This function is called once per frame and allows the object to update it's state.
Definition: ispy.cpp:78
virtual std::string get_display_name() const override
Returns the display name of the object, translated to the user's locale.
Definition: ispy.hpp:36
Definition: object_settings.hpp:39
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: ispy.hpp:37
virtual void on_flip(float height) override
When level is flipped vertically.
Definition: ispy.cpp:134
This class is responsible for: Updating and drawing the object.
Definition: game_object.hpp:83
An Ispy: When it spots Tux, a script will run.
Definition: ispy.hpp:25
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: sticky_object.hpp:34
A helper structure to list all the type_indexes of the classes in the type hierarchy of a given class...
Definition: game_object.hpp:57
Definition: reader_mapping.hpp:32
This is a class for MovingSprites that can stick to the sides, top and bottom of MovingObjects, such as platforms, fallblock, tilemap, etc.
Definition: sticky_object.hpp:27
This class collects data about a collision.
Definition: collision_hit.hpp:44