[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/worldobjs fake_exit.cxx,1.11,1.12 fak
From: |
torangan |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/worldobjs fake_exit.cxx,1.11,1.12 fake_exit.hxx,1.6,1.7 |
Date: |
20 Oct 2002 18:28:51 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/worldobjs
In directory dark:/tmp/cvs-serv21843/src/worldobjs
Modified Files:
fake_exit.cxx fake_exit.hxx
Log Message:
applied several patches
Index: fake_exit.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/worldobjs/fake_exit.cxx,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- fake_exit.cxx 13 Oct 2002 20:25:00 -0000 1.11
+++ fake_exit.cxx 20 Oct 2002 18:28:49 -0000 1.12
@@ -22,13 +22,15 @@
#include "../pingu_holder.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);
@@ -36,6 +38,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()
@@ -90,6 +94,12 @@
}
}
}
+}
+
+void
+FakeExit::draw_smallmap(SmallMap* smallmap)
+{
+ smallmap->draw_sprite(smallmap_symbol, data->pos);
}
} // namespace WorldObjs
Index: fake_exit.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/worldobjs/fake_exit.hxx,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- fake_exit.hxx 1 Oct 2002 19:53:46 -0000 1.6
+++ fake_exit.hxx 20 Oct 2002 18:28:49 -0000 1.7
@@ -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*);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/worldobjs fake_exit.cxx,1.11,1.12 fake_exit.hxx,1.6,1.7,
torangan <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/data/images/pingus digger_radius.png,1.3,1.4 digger_radius_gfx.png,1.2,1.3
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus pingus.dsp,1.19,1.20
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/data/images/pingus digger_radius.png,1.3,1.4 digger_radius_gfx.png,1.2,1.3
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus pingus.dsp,1.19,1.20
- Index(es):