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

游戏

开发平台:

Visual C++

  1. /*****************************************************************************
  2. *                                                                             
  3. *   GameOver.cpp                                                            
  4. *                                                                             
  5. *   Electrical Engineering Faculty - Software Lab                             
  6. *   Spring semester 1998                                                      
  7. *                                                                             
  8. *   Tanks game                                                                
  9. *                                                                             
  10. *   Module description: Implements the game over object.
  11. *                       
  12. *                                                                             
  13. *   Authors: Eran Yariv - 28484475                                           
  14. *            Moshe Zur  - 24070856                                           
  15. *                                                                            
  16. *                                                                            
  17. *   Date: 23/09/98                                                           
  18. *                                                                            
  19. ******************************************************************************/
  20. #include "stdafx.h"
  21. #include "GameOver.h"
  22. #include "Tanks.h"
  23. CGameOver::CGameOver ()
  24. {
  25.     m_Pos.x = MAP_WIDTH / 2 - GAMEOVER_ANIM_WIDTH / 2;
  26.     m_Pos.y = MAP_HEIGHT / 2 - GAMEOVER_ANIM_HEIGHT / 2;
  27.     m_Size.cx = GAMEOVER_ANIM_WIDTH;
  28.     m_Size.cy = GAMEOVER_ANIM_HEIGHT;
  29.     m_GlobalImageManager.LoadGameOverBitmaps();
  30.     m_hImage = m_GlobalImageManager.GetImage (CImageManager::IMG_GAMEOVER);
  31.         // Play sound
  32.     TANKS_APP->m_gSoundManager.Play(CSoundManager::GAME_OVER);
  33. }