projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed jump behaviour: Tux will now jump even if the button was pressed (up to)...
[supertux.git]
/
src
/
object
/
portable.hpp
diff --git
a/src/object/portable.hpp
b/src/object/portable.hpp
index
d3a2aef
..
721879d
100644
(file)
--- a/
src/object/portable.hpp
+++ b/
src/object/portable.hpp
@@
-33,10
+33,6
@@
class Portable
{
public:
class Portable
{
public:
- Portable(bool portable = false) :
- portable(portable)
- {
- }
virtual ~Portable()
{ }
virtual ~Portable()
{ }
@@
-48,20
+44,10
@@
public:
virtual void ungrab(MovingObject& , Direction )
{}
virtual void ungrab(MovingObject& , Direction )
{}
- // --- BEGIN METHODS TO EXPOSE TO SQUIRREL --- //
- void set_portable(bool portable)
- {
- this->portable = portable;
- }
-
- bool is_portable() const
+ virtual bool is_portable() const
{
{
- return
portabl
e;
+ return
tru
e;
}
}
- // --- END METHODS TO EXPOSE TO SQUIRREL --- //
-
-private:
- bool portable; /**< true if this object can currently be carried */
};
#endif
};
#endif