18 #ifndef HEADER_SUPERTUX_WORLDMAP_LEVEL_TILE_HPP 19 #define HEADER_SUPERTUX_WORLDMAP_LEVEL_TILE_HPP 21 #include "math/vector.hpp" 22 #include "sprite/sprite_ptr.hpp" 23 #include "supertux/game_object.hpp" 24 #include "supertux/statistics.hpp" 39 virtual void update(
float dt_sec)
override;
41 void set_solved(
bool v);
42 bool is_solved()
const {
return m_solved; }
44 void set_perfect(
bool v);
45 bool is_perfect()
const {
return m_perfect; }
47 Statistics& get_statistics() {
return m_statistics; }
48 const Statistics& get_statistics()
const {
return m_statistics; }
50 void update_sprite_action();
52 Vector get_pos()
const {
return m_pos; }
54 std::string get_title()
const {
return m_title; }
55 std::string get_level_filename()
const {
return m_level_filename; }
56 std::string get_basedir()
const {
return m_basedir; }
57 Color get_title_color()
const {
return m_title_color; }
58 std::string get_extro_script()
const {
return m_extro_script; }
59 float get_target_time()
const {
return m_target_time; }
60 bool is_auto_play()
const {
return m_auto_play; }
65 std::string m_basedir;
66 std::string m_level_filename;
75 std::string m_extro_script;
Simple two dimensional vector.
Definition: vector.hpp:24
This class is a layer between level and worldmap to keep track of stuff like scores, and minor, but funny things, like number of jumps and stuff.
Definition: statistics.hpp:32
virtual void update(float dt_sec) override
This function is called once per frame and allows the object to update it's state.
Definition: level_tile.cpp:89
Definition: object_settings.hpp:28
Definition: level_tile.hpp:30
Base class for all the things that make up Levels' Sectors.
Definition: game_object.hpp:46
Definition: worldmap_parser.hpp:28
virtual void draw(DrawingContext &context) override
The GameObject should draw itself onto the provided DrawingContext if this function is called...
Definition: level_tile.cpp:83
Definition: reader_mapping.hpp:31
This class provides functions for drawing things on screen.
Definition: drawing_context.hpp:42