X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsector.h;h=ad735f48d0073e1c1155fb97c922f0bd3a5de067;hb=f80ec06ce6d95942926c8ea8ac8c6fb872f9330e;hp=64e2b3d02aa044e7ae88e5e0b51950cfe521cefd;hpb=c0093d25093395cb62fc2526ab42be65a9f015b8;p=supertux.git diff --git a/src/sector.h b/src/sector.h index 64e2b3d02..ad735f48d 100644 --- a/src/sector.h +++ b/src/sector.h @@ -27,16 +27,12 @@ #include "audio/musicref.h" #include "video/drawing_context.h" -using namespace SuperTux; - -namespace SuperTux { -class Rectangle; -} namespace lisp { class Lisp; class Writer; } +class Rect; class Sprite; class GameObject; class Player; @@ -44,6 +40,7 @@ class Camera; class TileMap; class Bullet; class CollisionGrid; +class ScriptInterpreter; class SpawnPoint { @@ -90,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(); @@ -138,13 +135,15 @@ public: private: std::vector bullets; + std::string init_script; + public: // TODO make this private again typedef std::vector GameObjects; GameObjects gameobjects; typedef std::vector SpawnPoints; SpawnPoints spawnpoints; - Rectangle get_active_region(); + Rect get_active_region(); private: void fix_old_tiles();