]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/bombs/bombs.h
Always declare wxCStrData::As[W]Char() as being inline.
[wxWidgets.git] / demos / bombs / bombs.h
index d56f528f0a2464887148a542bf24dec27e2f7c2b..52ee72bd9deaca74f48f51a4b834665697951ba0 100644 (file)
@@ -2,7 +2,7 @@
 // Name:        bombs.h
 // Purpose:     Bombs game
 // Author:      P. Foggia 1996
-// Modified by: Wlodzimierz Skiba (ABX) 2003
+// Modified by: Wlodzimierz Skiba (ABX) since 2003
 // Created:     1996
 // RCS-ID:      $Id$
 // Copyright:   (c) 1996 P. Foggia
@@ -41,19 +41,24 @@ public:
 
     BombsFrame(BombsGame *bombsGame);
 
-    void NewGame(int level);
+    void NewGame(int level, bool query);
 
 private:
 
-    void OnNewEasyGame(wxCommandEvent& event);
-    void OnNewMediumGame(wxCommandEvent& event);
-    void OnNewHardGame(wxCommandEvent& event);
+    void OnNewGame(wxCommandEvent& event);
+    void OnEasyGame(wxCommandEvent& event);
+    void OnMediumGame(wxCommandEvent& event);
+    void OnHardGame(wxCommandEvent& event);
+
+    void OnEasyCorner(wxCommandEvent& event);
 
     void OnExit(wxCommandEvent& event);
 
     void OnAbout(wxCommandEvent& event);
 
     BombsGame *m_game;
+    bool m_easyCorner;
+    int m_lastLevel;
 
     // Subwindows for reference within the program.
     BombsCanvas *m_canvas;
@@ -64,10 +69,11 @@ private:
 // App specific menu identifiers
 enum
 {
-    bombsID_NEWGAME = wxID_HIGHEST,
+    bombsID_LEVEL = wxID_HIGHEST,
     bombsID_EASY,
     bombsID_MEDIUM,
-    bombsID_HARD
+    bombsID_HARD,
+    bombsID_EASYCORNER
 };
 
 class BombsCanvas : public wxPanel
@@ -82,7 +88,7 @@ public:
 
     wxSize GetGridSizeInPixels() const;
 
-    ~BombsCanvas();
+    virtual ~BombsCanvas();
 
 private: