[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src client.cxx,1.21,1.22 client.hxx,1.16,
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src client.cxx,1.21,1.22 client.hxx,1.16,1.17 |
Date: |
17 Sep 2002 23:11:28 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src
In directory dark:/tmp/cvs-serv11161/src
Modified Files:
client.cxx client.hxx
Log Message:
added unplayable marker for levels
Index: client.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/client.cxx,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- client.cxx 14 Sep 2002 19:06:33 -0000 1.21
+++ client.cxx 17 Sep 2002 23:11:26 -0000 1.22
@@ -42,6 +42,7 @@
skip_frame (0),
do_replay (false),
is_finished (false),
+ unplayable ("misc/unplayable2", "core"),
button_panel (0),
pcounter (0),
playfield (0),
@@ -51,6 +52,8 @@
//cursor (new Cursor ("cursors/animcross", "core", controller))
{
//Display::add_flip_screen_hook(cursor);
+
+ unplayable.set_align_center();
Timer timer;
@@ -437,6 +440,8 @@
Client::draw (GraphicContext& gc)
{
GUIScreen::draw (gc);
+ if (!server->get_plf()->get_playable())
+ gc.draw(unplayable, CL_Vector(400, 50));
}
void
Index: client.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/client.hxx,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- client.hxx 11 Sep 2002 12:45:57 -0000 1.16
+++ client.hxx 17 Sep 2002 23:11:26 -0000 1.17
@@ -25,6 +25,7 @@
#include <vector>
#include "result.hxx"
#include "gui_screen.hxx"
+#include "sprite.hxx"
namespace Input {
class Controller;
@@ -60,6 +61,8 @@
int skip_frame;
bool do_replay;
bool is_finished;
+
+ Sprite unplayable;
ButtonPanel* button_panel;
PingusCounter* pcounter;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src client.cxx,1.21,1.22 client.hxx,1.16,1.17,
grumbel <=