17 #ifndef HEADER_SUPERTUX_EDITOR_WORLDMAP_OBJECTS_HPP 18 #define HEADER_SUPERTUX_EDITOR_WORLDMAP_OBJECTS_HPP 20 #include "object/moving_sprite.hpp" 21 #include "video/color.hpp" 22 #include "worldmap/direction.hpp" 35 virtual std::string get_class()
const override {
return "worldmap-object"; }
36 virtual void move_to(
const Vector& pos)
override;
55 virtual std::string get_class()
const override {
return "level"; }
56 virtual std::string get_display_name()
const override {
return _(
"Level"); }
58 virtual void after_editor_set()
override;
61 std::string m_level_filename;
62 std::string m_extro_script;
78 virtual std::string get_class()
const override {
return "teleporter"; }
79 virtual std::string get_display_name()
const override {
return _(
"Teleporter"); }
83 std::string m_worldmap;
84 std::string m_spawnpoint;
85 std::string m_message;
87 bool m_change_worldmap;
100 virtual std::string get_class()
const override {
return "worldmap-spawnpoint"; }
101 virtual std::string get_display_name()
const override {
return _(
"Spawn point"); }
106 worldmap::Direction m_dir;
118 virtual std::string get_class()
const override {
return "sprite-change"; }
119 virtual std::string get_display_name()
const override {
return _(
"Sprite Change"); }
123 std::string m_target_sprite;
124 std::string m_stay_action;
125 bool m_initial_stay_action;
126 std::string m_stay_group;
127 bool m_change_on_touch;
139 virtual std::string get_class()
const override {
return "special-tile"; }
140 virtual std::string get_display_name()
const override {
return _(
"Special tile"); }
144 std::string m_map_message;
145 std::string m_script;
146 bool m_passive_message;
147 bool m_invisible_tile;
149 std::string m_apply_to_directions;
Simple two dimensional vector.
Definition: vector.hpp:24
Definition: worldmap_objects.hpp:26
Definition: worldmap_objects.hpp:71
Definition: worldmap_objects.hpp:134
Definition: worldmap_objects.hpp:113
Definition: object_settings.hpp:35
virtual HitResponse collision(GameObject &other, const CollisionHit &hit) override
this function is called when the object collided with any other object
Definition: worldmap_objects.hpp:34
Definition: worldmap_objects.hpp:94
Definition: worldmap_objects.cpp:30
Base class for all the things that make up Levels' Sectors.
Definition: game_object.hpp:46
virtual void draw(DrawingContext &context) override
The GameObject should draw itself onto the provided DrawingContext if this function is called...
Definition: moving_sprite.cpp:101
Definition: worldmap_objects.hpp:48
Definition: reader_mapping.hpp:31
Abstract base class for MovingObjects that are represented by a Sprite.
Definition: moving_sprite.hpp:29
This class provides functions for drawing things on screen.
Definition: drawing_context.hpp:42
This class collects data about a collision.
Definition: collision_hit.hpp:44