[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r3385 - trunk/pingus/src/components
From: |
grumbel at BerliOS |
Subject: |
[Pingus-CVS] r3385 - trunk/pingus/src/components |
Date: |
Tue, 30 Oct 2007 05:39:26 +0100 |
Author: grumbel
Date: 2007-10-30 05:39:26 +0100 (Tue, 30 Oct 2007)
New Revision: 3385
Modified:
trunk/pingus/src/components/playfield.cpp
trunk/pingus/src/components/playfield.hpp
Log:
- turned Playfield into a rect component
Modified: trunk/pingus/src/components/playfield.cpp
===================================================================
--- trunk/pingus/src/components/playfield.cpp 2007-10-29 06:36:57 UTC (rev
3384)
+++ trunk/pingus/src/components/playfield.cpp 2007-10-30 04:39:26 UTC (rev
3385)
@@ -32,7 +32,7 @@
#include "playfield.hpp"
Playfield::Playfield (Client* client_, const Rect& rect_)
- : rect(rect_),
+ : RectComponent(rect_),
client(client_),
buttons(client->get_button_panel()),
current_pingu(0),
Modified: trunk/pingus/src/components/playfield.hpp
===================================================================
--- trunk/pingus/src/components/playfield.hpp 2007-10-29 06:36:57 UTC (rev
3384)
+++ trunk/pingus/src/components/playfield.hpp 2007-10-30 04:39:26 UTC (rev
3385)
@@ -22,7 +22,7 @@
#include "../client.hpp"
#include "../graphic_context_state.hpp"
-#include "../gui/component.hpp"
+#include "../gui/rect_component.hpp"
#include "../capture_rectangle.hpp"
class Pingu;
@@ -33,13 +33,11 @@
class View;
/** This class encapsulates all the different Views */
-class Playfield : public GUI::Component
+class Playfield : public GUI::RectComponent
{
private:
friend class Client;
- Rect rect;
-
////CL_Surface buffer;
Server* server;
Client* client;
@@ -93,6 +91,7 @@
bool is_at (int x, int y) { UNUSED_ARG(x); UNUSED_ARG(y); return true; }
Rect get_rect() const { return rect; }
+ void update_layout() {}
private:
Playfield (const Playfield&);
Playfield& operator= (const Playfield&);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r3385 - trunk/pingus/src/components,
grumbel at BerliOS <=