projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Made buttjump a bit easier to perform
[supertux.git]
/
src
/
object
/
light.hpp
diff --git
a/src/object/light.hpp
b/src/object/light.hpp
index
cac9a71
..
b9b625b
100644
(file)
--- a/
src/object/light.hpp
+++ b/
src/object/light.hpp
@@
-22,21
+22,24
@@
#include "game_object.hpp"
#include "lisp/lisp.hpp"
#include "game_object.hpp"
#include "lisp/lisp.hpp"
+#include "math/vector.hpp"
+#include "video/color.hpp"
class Sprite;
class Light : public GameObject
{
public:
class Sprite;
class Light : public GameObject
{
public:
- Light(const
lisp::Lisp& reader
);
+ Light(const
Vector& center, const Color& color = Color(1.0, 1.0, 1.0, 1.0)
);
virtual ~Light();
void update(float elapsed_time);
void draw(DrawingContext& context);
virtual ~Light();
void update(float elapsed_time);
void draw(DrawingContext& context);
-private:
+protected:
+ Vector position;
+ Color color;
Sprite* sprite;
};
#endif
Sprite* sprite;
};
#endif
-