19 #ifndef HEADER_SUPERTUX_WORLDMAP_SPECIAL_TILE_HPP 20 #define HEADER_SUPERTUX_WORLDMAP_SPECIAL_TILE_HPP 22 #include "worldmap/worldmap_object.hpp" 34 static std::string class_name() {
return "special-tile"; }
35 virtual std::string get_class_name()
const override {
return class_name(); }
36 static std::string display_name() {
return _(
"Special Tile"); }
44 const std::string& get_map_message()
const {
return m_map_message; }
45 bool is_passive_message()
const {
return m_passive_message; }
46 const std::string& get_script()
const {
return m_script; }
48 bool get_apply_action_north()
const {
return m_apply_action_north; }
49 bool get_apply_action_east()
const {
return m_apply_action_east; }
50 bool get_apply_action_south()
const {
return m_apply_action_south; }
51 bool get_apply_action_west()
const {
return m_apply_action_west; }
55 std::string m_map_message;
56 bool m_passive_message;
65 std::string m_apply_direction;
66 bool m_apply_action_north;
67 bool m_apply_action_east;
68 bool m_apply_action_south;
69 bool m_apply_action_west;
Definition: worldmap_object.hpp:30
Definition: object_settings.hpp:39
virtual void draw_worldmap(DrawingContext &context) override
Draws the object, when on a worldmap.
Definition: special_tile.cpp:61
Definition: object_settings.hpp:32
Definition: special_tile.hpp:28
virtual std::string get_display_name() const override
Returns the display name of the object, translated to the user's locale.
Definition: special_tile.hpp:37
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
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: special_tile.hpp:38
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: worldmap_object.hpp:39
Definition: reader_mapping.hpp:32
This class provides functions for drawing things on screen.
Definition: drawing_context.hpp:42