pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] r3705 - trunk/pingus/src


From: grumbel at BerliOS
Subject: [Pingus-CVS] r3705 - trunk/pingus/src
Date: Mon, 7 Jul 2008 09:06:05 +0200

Author: grumbel
Date: 2008-07-07 09:06:04 +0200 (Mon, 07 Jul 2008)
New Revision: 3705

Modified:
   trunk/pingus/src/game_session.cpp
   trunk/pingus/src/game_session.hpp
Log:
added member variables for buttons

Modified: trunk/pingus/src/game_session.cpp
===================================================================
--- trunk/pingus/src/game_session.cpp   2008-07-07 06:41:36 UTC (rev 3704)
+++ trunk/pingus/src/game_session.cpp   2008-07-07 07:06:04 UTC (rev 3705)
@@ -80,9 +80,13 @@
   gui_manager->add(small_map,    true);
   gui_manager->add(time_display, true);
 
-  gui_manager->add(new ArmageddonButton(get_server(), Display::get_width() - 
40,     Display::get_height() - 62), true);
-  gui_manager->add(new ForwardButton   (this, Display::get_width() - 40 * 2, 
Display::get_height() - 62), true);
-  gui_manager->add(new PauseButton     (this, Display::get_width() - 40 * 3, 
Display::get_height() - 62), true);
+  armageddon_button = new ArmageddonButton(get_server(), Display::get_width() 
- 40,     Display::get_height() - 62);
+  forward_button    = new ForwardButton(this, Display::get_width() - 40 * 2, 
Display::get_height() - 62);
+  pause_button      = new PauseButton(this, Display::get_width() - 40 * 3, 
Display::get_height() - 62);
+
+  gui_manager->add(armageddon_button, true);
+  gui_manager->add(forward_button, true);
+  gui_manager->add(pause_button, true);
 }
 
 GameSession::~GameSession ()

Modified: trunk/pingus/src/game_session.hpp
===================================================================
--- trunk/pingus/src/game_session.hpp   2008-07-07 06:41:36 UTC (rev 3704)
+++ trunk/pingus/src/game_session.hpp   2008-07-07 07:06:04 UTC (rev 3705)
@@ -34,6 +34,9 @@
 class Playfield;
 class TimeDisplay;
 class SmallMap;
+class ArmageddonButton;
+class ForwardButton;
+class PauseButton;
 class Server;
 
 /** You can use this class to start up a game session, which consist
@@ -60,6 +63,10 @@
   TimeDisplay*   time_display;
   SmallMap*      small_map;
 
+  ArmageddonButton* armageddon_button;
+  ForwardButton*    forward_button;
+  PauseButton*      pause_button;
+
   bool pause;
   bool fast_forward;
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]