projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix issue with action not being updated when typing grow()/fire()/etc in console...
[supertux.git]
/
src
/
object
/
lantern.hpp
diff --git
a/src/object/lantern.hpp
b/src/object/lantern.hpp
index
a41e386
..
b8498a3
100644
(file)
--- a/
src/object/lantern.hpp
+++ b/
src/object/lantern.hpp
@@
-29,6
+29,7
@@
class Lantern : public Rock
{
public:
class Lantern : public Rock
{
public:
+ Lantern(const Vector& pos);
Lantern(const lisp::Lisp& reader);
void draw(DrawingContext& context);
~Lantern();
Lantern(const lisp::Lisp& reader);
void draw(DrawingContext& context);
~Lantern();
@@
-43,6
+44,13
@@
public:
*/
bool is_open();
*/
bool is_open();
+ /**
+ * returns the lamp's color
+ */
+ Color get_color() const {
+ return lightcolor;
+ }
+
private:
Color lightcolor;
Sprite* lightsprite;
private:
Color lightcolor;
Sprite* lightsprite;