GameSetup.h
上传用户:royluo
上传日期:2007-01-05
资源大小:1584k
文件大小:3k
源码类别:

游戏

开发平台:

Visual C++

  1. /*****************************************************************************
  2. *                                                                             
  3. *   GameSetup.h
  4. *                                                                             
  5. *   Electrical Engineering Faculty - Software Lab                             
  6. *   Spring semester 1998                                                      
  7. *                                                                             
  8. *   Tanks game                                                                
  9. *                                                                             
  10. *   Module description: Interface of the GameSetup dialog.
  11. *                       
  12. *                                                                             
  13. *   Authors: Eran Yariv - 28484475                                           
  14. *            Moshe Zur  - 24070856                                           
  15. *                                                                            
  16. *                                                                            
  17. *   Date: 23/09/98                                                           
  18. *                                                                            
  19. ******************************************************************************/
  20. #if !defined(AFX_GAMESETUP_H__3161B0C4_E818_11D1_9738_B48DE1E5CB1C__INCLUDED_)
  21. #define AFX_GAMESETUP_H__3161B0C4_E818_11D1_9738_B48DE1E5CB1C__INCLUDED_
  22. #if _MSC_VER >= 1000
  23. #pragma once
  24. #endif // _MSC_VER >= 1000
  25. // GameSetup.h : header file
  26. //
  27. #include "AnimateTank.h"
  28. #include <GameConsts.h>
  29. #include <AniButton.h>
  30. /////////////////////////////////////////////////////////////////////////////
  31. // CGameSetup dialog
  32. class CGameSetup : public CDialog
  33. {
  34. // Construction
  35. public:
  36. CGameSetup(CWnd* pParent = NULL);   // standard constructor
  37. // Dialog Data
  38. //{{AFX_DATA(CGameSetup)
  39. enum { IDD = IDD_GAME_SETUP };
  40. CSliderCtrl m_Complexity;
  41. CAniButton m_ctrOK;
  42.     CAniButton  m_ctrCancel;
  43. //}}AFX_DATA
  44. // Overrides
  45. // ClassWizard generated virtual function overrides
  46. //{{AFX_VIRTUAL(CGameSetup)
  47. protected:
  48. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  49. //}}AFX_VIRTUAL
  50. // Implementation
  51. protected:
  52. // Generated message map functions
  53. //{{AFX_MSG(CGameSetup)
  54. virtual BOOL OnInitDialog();
  55. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  56. virtual void OnOK();
  57. //}}AFX_MSG
  58. DECLARE_MESSAGE_MAP()
  59. private:
  60. void LoadSettings (void);
  61.     UINT            m_uSelectedTankID;
  62. CAnimateTank    m_AnimTanks[MAX_TANKS];
  63. };
  64. //{{AFX_INSERT_LOCATION}}
  65. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  66. #endif // !defined(AFX_GAMESETUP_H__3161B0C4_E818_11D1_9738_B48DE1E5CB1C__INCLUDED_)