17 #ifndef HEADER_SUPERTUX_OBJECT_ISPY_HPP 18 #define HEADER_SUPERTUX_OBJECT_ISPY_HPP 20 #include "object/moving_sprite.hpp" 21 #include "supertux/direction.hpp" 31 virtual void update(
float dt_sec)
override;
32 virtual std::string get_class()
const override {
return "ispy"; }
33 virtual std::string get_display_name()
const override {
return _(
"Ispy"); }
36 virtual void after_editor_set()
override;
55 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:83
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:89
Definition: object_settings.hpp:35
Base class for all the things that make up Levels' Sectors.
Definition: game_object.hpp:46
An Ispy: When it spots Tux, a script will run.
Definition: ispy.hpp:24
Definition: reader_mapping.hpp:31
Abstract base class for MovingObjects that are represented by a Sprite.
Definition: moving_sprite.hpp:29
This class collects data about a collision.
Definition: collision_hit.hpp:44