projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'feature/download-non-blocking'
[supertux.git]
/
src
/
scripting
/
scripted_object.hpp
diff --git
a/src/scripting/scripted_object.hpp
b/src/scripting/scripted_object.hpp
index
8def273
..
966dbc5
100644
(file)
--- a/
src/scripting/scripted_object.hpp
+++ b/
src/scripting/scripted_object.hpp
@@
-17,7
+17,7
@@
#ifndef HEADER_SUPERTUX_SCRIPTING_SCRIPTED_OBJECT_HPP
#define HEADER_SUPERTUX_SCRIPTING_SCRIPTED_OBJECT_HPP
#ifndef HEADER_SUPERTUX_SCRIPTING_SCRIPTED_OBJECT_HPP
#define HEADER_SUPERTUX_SCRIPTING_SCRIPTED_OBJECT_HPP
-namespace
S
cripting {
+namespace
s
cripting {
class ScriptedObject
{
class ScriptedObject
{
@@
-39,6
+39,9
@@
public:
virtual float get_velocity_x() = 0;
virtual float get_velocity_y() = 0;
virtual float get_velocity_x() = 0;
virtual float get_velocity_y() = 0;
+ virtual void enable_gravity(bool gravity_enabled) = 0;
+ virtual bool gravity_enabled() const = 0;
+
virtual void set_visible(bool visible) = 0;
virtual bool is_visible() = 0;
virtual void set_visible(bool visible) = 0;
virtual bool is_visible() = 0;