- Change ScriptInterpreter to a gameobject, so we can now have several script
[supertux.git] / src / sector.h
index 2067e09..ad735f4 100644 (file)
@@ -32,7 +32,7 @@ class Lisp;
 class Writer;
 }
 
-class Rectangle;
+class Rect;
 class Sprite;
 class GameObject;
 class Player;
@@ -40,6 +40,7 @@ class Camera;
 class TileMap;
 class Bullet;
 class CollisionGrid;
+class ScriptInterpreter;
 
 class SpawnPoint
 {
@@ -86,7 +87,7 @@ public:
   { return name; }
 
   /// tests if a given rectangle is inside the sector
-  bool inside(const Rectangle& rectangle) const;
+  bool inside(const Rect& rectangle) const;
 
   void play_music(MusicType musictype);
   MusicType get_music_type();
@@ -134,13 +135,15 @@ public:
 private:
   std::vector<Bullet*> bullets;
 
+  std::string init_script;
+
 public: // TODO make this private again
   typedef std::vector<GameObject*> GameObjects;
   GameObjects gameobjects;
   typedef std::vector<SpawnPoint*> SpawnPoints;
   SpawnPoints spawnpoints;                       
 
-  Rectangle get_active_region();
+  Rect get_active_region();
 
 private:
   void fix_old_tiles();