17 #ifndef HEADER_SUPERTUX_OBJECT_INFOBLOCK_HPP 18 #define HEADER_SUPERTUX_OBJECT_INFOBLOCK_HPP 22 #include "object/block.hpp" 32 virtual void update(
float dt_sec)
override;
35 static std::string class_name() {
return "infoblock"; }
36 virtual std::string get_class_name()
const override {
return class_name(); }
37 static std::string display_name() {
return _(
"Info Block"); }
47 virtual void hit(
Player& player)
override;
50 Player* get_nearest_player()
const;
53 std::string m_message;
58 std::vector<std::unique_ptr<InfoBoxLine> > m_lines;
63 bool m_fadetransition;
virtual void draw(DrawingContext &context) override
The GameObject should draw itself onto the provided DrawingContext if this function is called...
Definition: infoblock.cpp:169
Definition: object_settings.hpp:39
virtual std::string get_display_name() const override
Returns the display name of the object, translated to the user's locale.
Definition: infoblock.hpp:38
virtual void update(float dt_sec) override
This function is called once per frame and allows the object to update it's state.
Definition: infoblock.cpp:143
Definition: collision.cpp:24
This class is responsible for: Updating and drawing the object.
Definition: game_object.hpp:83
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: infoblock.hpp:39
Helper class for InfoBox: Represents a line of text.
Definition: info_box_line.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
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: block.hpp:33
Definition: infoblock.hpp:26
Definition: reader_mapping.hpp:32
This module contains methods controlling the player.
Definition: player.hpp:47
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