1 /* 2 * Copyright 2008 Ralf Schülke, ralf.schuelke@googlemail.com. 3 * Copyright 2010 Adam Smith <adamd.smith@utoronto.ca> 4 * All rights reserved. Distributed under the terms of the MIT License. 5 */ 6 7 #ifndef PAIRS_WINDOW_H 8 #define PAIRS_WINDOW_H 9 10 #include <Window.h> 11 12 class PairsView; 13 class BMessageRunner; 14 15 16 class PairsWindow : public BWindow { 17 public: 18 PairsWindow(); 19 virtual ~PairsWindow(); 20 21 virtual void MessageReceived(BMessage* message); 22 23 void NewGame(); 24 void SetGameSize(int width, int height); 25 26 private: 27 void _MakeGameView(int width, int height); 28 void _MakeMenuBar(); 29 30 BView* fBackgroundView; 31 PairsView* fPairsView; 32 BMenuBar* fMenuBar; 33 BMessageRunner* fPairComparing; 34 bool fIsFirstClick; 35 bool fIsPairsActive; 36 int fPairCard; 37 int fPairCardTmp; 38 int fButtonTmp; 39 int fButton; 40 int fButtonClicks; 41 int fFinishPairs; 42 }; 43 44 #endif // PAIRS_WINDOW_H 45