Update of /cvsroot/super-tux/supertux/lib/special
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9911/lib/special
Modified Files:
game_object.h moving_object.h object_remove_listener.h
Log Message:
Had a bit of time today and worked on supertux:
- Commited some old changes I had lying around here
(improved mrtree images? and improvement to the collision grid which still
isn't enabled by default)
- Did a bit more cleanups (eleminated defines.h and renamed scene.* to
player_status.* as that is waht ti really contained)
- Cleaned up PlayerStatus code a bit (refactored loading/saving out of worldmap
into PlayerStatus)
- Implemented LevelTransformer interface and did a first test with a flip level
transformer
- Removed explicit LevelEndSequence attribute (can be done by placing aprorpiate
SequenceTrigger objects)
Index: game_object.h
===================================================================
RCS file: /cvsroot/super-tux/supertux/lib/special/game_object.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- game_object.h 16 Jan 2005 12:11:22 -0000 1.5
+++ game_object.h 25 Mar 2005 20:39:48 -0000 1.6
@@ -80,8 +80,7 @@
remove_listeners = entry;
}
-
-
+
// flags
enum {
/// the tile so you can stand on it
Index: object_remove_listener.h
===================================================================
RCS file: /cvsroot/super-tux/supertux/lib/special/object_remove_listener.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- object_remove_listener.h 16 Jan 2005 12:11:22 -0000 1.1
+++ object_remove_listener.h 25 Mar 2005 20:39:48 -0000 1.2
@@ -9,6 +9,9 @@
class ObjectRemoveListener
{
public:
+ virtual ~ObjectRemoveListener()
+ { }
+
virtual void object_removed(GameObject* object) = 0;
};
Index: moving_object.h
===================================================================
RCS file: /cvsroot/super-tux/supertux/lib/special/moving_object.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- moving_object.h 29 Nov 2004 16:03:29 -0000 1.6
+++ moving_object.h 25 Mar 2005 20:39:48 -0000 1.7
@@ -25,6 +25,7 @@
#include "math/vector.h"
#include "math/rectangle.h"
+class FlipLevelTransformer;
class Sector;
class CollisionGrid;
@@ -65,6 +66,7 @@
protected:
friend class Sector;
friend class CollisionGrid;
+ friend class FlipLevelTransformer;
/** The bounding box of the object (as used for collision detection, this
* isn't necessarily the bounding box for graphics)
|