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

游戏

开发平台:

Visual C++

  1. /*****************************************************************************
  2. *                                                                             
  3. *   GameOver.inl
  4. *                                                                             
  5. *   Electrical Engineering Faculty - Software Lab                             
  6. *   Spring semester 1998                                                      
  7. *                                                                             
  8. *   Tanks game                                                                
  9. *                                                                             
  10. *   Contents: Inline functions implementations.
  11. *                                                                             
  12. *   Authors: Eran Yariv - 28484475                                           
  13. *            Moshe Zur  - 24070856                                           
  14. *                                                                            
  15. *                                                                            
  16. *   Date: 23/09/98                                                           
  17. *                                                                            
  18. ******************************************************************************/
  19. inline StateType           
  20. CGameOver::CalcState (DWORD /*dwCurTime*/)
  21. {
  22.     return STATE_ALIVE;
  23. }
  24. inline ObjectHeightType    
  25. CGameOver::GetHeight()
  26. {
  27.     return HIGHER_LEVEL;
  28. }
  29. inline HIMAGE
  30. CGameOver::GetImage()
  31. {
  32.     m_GlobalImageManager.UpdateImage (m_hImage, m_bImageChanged);
  33.     return m_hImage;
  34. }
  35. inline CReaction           
  36. CGameOver::React(CGameObject *  /*pTo*/)
  37. {
  38.     return CReaction(); // No reaction
  39. }
  40. inline GameObjectType      
  41. CGameOver::GetType()
  42. {
  43.     return GAMEOVER;
  44. }
  45. inline CGameOver::~CGameOver()
  46. {
  47.     m_GlobalImageManager.ReleaseGameOverBitmaps();
  48. }