Index: Games/Pingus/src/worldobjs/fake_exit.cxx =================================================================== RCS file: /usr/local/cvsroot/Games/Pingus/src/worldobjs/fake_exit.cxx,v retrieving revision 1.9 diff -u -r1.9 fake_exit.cxx --- Games/Pingus/src/worldobjs/fake_exit.cxx 4 Oct 2002 13:46:56 -0000 1.9 +++ Games/Pingus/src/worldobjs/fake_exit.cxx 13 Oct 2002 18:36:22 -0000 @@ -23,13 +23,15 @@ #include "../pingu_action.hxx" #include "../world.hxx" #include "../worldobjsdata/fake_exit_data.hxx" +#include "../smallmap.hxx" #include "fake_exit.hxx" namespace WorldObjs { FakeExit::FakeExit (const WorldObjsData::FakeExitData& data_) : data (new WorldObjsData::FakeExitData(data_)), - smashing(false) + smashing(false), + smallmap_symbol("misc/smallmap_exit", "core") { data->counter.set_size(data->surface.get_num_frames()); data->counter.set_type(GameCounter::once); @@ -37,6 +39,8 @@ data->counter = data->surface.get_num_frames() - 1; data->pos -= Vector(data->surface.get_width ()/2, data->surface.get_height ()); + + smallmap_symbol.set_align_center_bottom(); } FakeExit::~FakeExit() @@ -91,6 +95,12 @@ } } } +} + +void +FakeExit::draw_smallmap(SmallMap* smallmap) +{ + smallmap->draw_sprite(smallmap_symbol, data->pos); } } // namespace WorldObjs Index: Games/Pingus/src/worldobjs/fake_exit.hxx =================================================================== RCS file: /usr/local/cvsroot/Games/Pingus/src/worldobjs/fake_exit.hxx,v retrieving revision 1.6 diff -u -r1.6 fake_exit.hxx --- Games/Pingus/src/worldobjs/fake_exit.hxx 1 Oct 2002 19:53:46 -0000 1.6 +++ Games/Pingus/src/worldobjs/fake_exit.hxx 13 Oct 2002 18:36:22 -0000 @@ -21,6 +21,7 @@ #define HEADER_PINGUS_TRAPS_FAKE_EXIT_HXX #include "../worldobj.hxx" +#include "../sprite.hxx" class Pingu; @@ -38,6 +39,7 @@ private: WorldObjsData::FakeExitData* const data; bool smashing; + Sprite smallmap_symbol; public: FakeExit (const WorldObjsData::FakeExitData& data_); @@ -48,6 +50,9 @@ void draw (GraphicContext& gc); void update (); + + /** Draws an exit symbol on to the small map. */ + void draw_smallmap(SmallMap* smallmap); private: void catch_pingu (Pingu*);