17 #ifndef HEADER_SUPERTUX_OBJECT_CANDLE_HPP 18 #define HEADER_SUPERTUX_OBJECT_CANDLE_HPP 20 #include "object/moving_sprite.hpp" 21 #include "scripting/candle.hpp" 22 #include "squirrel/exposed_object.hpp" 35 virtual std::string get_class()
const override {
return "candle"; }
36 virtual std::string get_display_name()
const override {
return _(
"Candle"); }
39 virtual void after_editor_set()
override;
52 SpritePtr candle_light_1;
53 SpritePtr candle_light_2;
virtual void draw(DrawingContext &context) override
The GameObject should draw itself onto the provided DrawingContext if this function is called...
Definition: candle.cpp:84
void puff_smoke()
spawn a puff of smoke
Definition: candle.cpp:110
This class binds a certain GameObject class to a scripting class.
Definition: exposed_object.hpp:45
Definition: object_settings.hpp:35
A burning candle: Simple, scriptable level decoration.
Definition: candle.hpp:27
Base class for all the things that make up Levels' Sectors.
Definition: game_object.hpp:46
bool get_burning() const
returns true if candle is lighted
Definition: candle.cpp:123
void set_burning(bool burning)
true: light candle, false: extinguish candle
Definition: candle.cpp:129
virtual HitResponse collision(GameObject &other, const CollisionHit &hit) override
this function is called when the object collided with any other object
Definition: candle.cpp:104
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