[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src story.cxx,1.4,1.5 story.hxx,1.4,1.5
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src story.cxx,1.4,1.5 story.hxx,1.4,1.5 |
Date: |
17 Aug 2002 00:31:09 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src
In directory dark:/tmp/cvs-serv8709
Modified Files:
story.cxx story.hxx
Log Message:
- better input handling
Index: story.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/story.cxx,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- story.cxx 14 Aug 2002 12:45:02 -0000 1.4
+++ story.cxx 17 Aug 2002 00:31:06 -0000 1.5
@@ -118,8 +118,20 @@
}*/
}
+void
+Story::on_fast_forward_press ()
+{
+ on_pause_press ();
+}
+
+void
+Story::on_escape_press ()
+{
+ manager->set_menu (&manager->mainmenu);
+}
+
void
-Story::unhandled_event ()
+Story::on_pause_press ()
{
// FIXME: Since we havn't yet a button to continue with the story,
// we contiune on the first unhandled event (most likly a button
Index: story.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/story.hxx,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- story.hxx 1 Aug 2002 21:40:01 -0000 1.4
+++ story.hxx 17 Aug 2002 00:31:06 -0000 1.5
@@ -53,7 +53,9 @@
bool is_at (int x, int y);
- void unhandled_event ();
+ void on_pause_press ();
+ void on_fast_forward_press ();
+ void on_escape_press ();
};
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src story.cxx,1.4,1.5 story.hxx,1.4,1.5,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src screen_manager.cxx,1.10,1.11 screen_manager.hxx,1.7,1.8
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/gui gui_manager.cxx,1.10,1.11 gui_manager.hxx,1.7,1.8
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src screen_manager.cxx,1.10,1.11 screen_manager.hxx,1.7,1.8
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/gui gui_manager.cxx,1.10,1.11 gui_manager.hxx,1.7,1.8
- Index(es):