MissionBriefingScreen.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. #ifndef MISSIONBRIEFINGSCREEN_H
  2. #define MISSIONBRIEFINGSCREEN_H
  3. //===========================================================================//
  4. // Copyright (C) Microsoft Corporation. All rights reserved. //
  5. //===========================================================================//
  6. #ifndef LOGISTICSSCREEN_H
  7. #include "LogisticsScreen.h"
  8. #endif
  9. #ifndef ALISTBOX_H
  10. #include "aListBox.h"
  11. #endif
  12. #ifndef ABUTTON_H
  13. #include "aButton.h"
  14. #endif
  15. #ifndef MISSION_H
  16. #include "Mission.h"
  17. #endif
  18. #ifndef SIMPLECAMERA_H
  19. #include "SimpleCamera.h"
  20. #endif
  21. #define MN_MSG_PLAY 80
  22. #define MN_MSG_STOP 82
  23. #define MN_MSG_PAUSE 81
  24. //*************************************************************************************************
  25. /**************************************************************************************************
  26. CLASS DESCRIPTION
  27. MissionBriefingScreen:
  28. **************************************************************************************************/
  29. class MissionBriefingScreen: public LogisticsScreen
  30. {
  31. public:
  32. MissionBriefingScreen();
  33. virtual ~MissionBriefingScreen();
  34. virtual void render( int xOffset, int yOffset );
  35. virtual void begin();
  36. virtual void end();
  37. virtual void update();
  38. void init( FitIniFile* file );
  39. virtual int handleMessage( unsigned long, unsigned long );
  40. static long getMissionTGA( const char* missionName );
  41. private:
  42. aObject* objectiveButtons[MAX_OBJECTIVES];
  43. aObject dropZoneButton;
  44. EString objectiveModels[MAX_OBJECTIVES];
  45. long modelTypes[MAX_OBJECTIVES];
  46. float modelScales[MAX_OBJECTIVES];
  47. long modelColors[MAX_OBJECTIVES][3];
  48. aListBox missionListBox;
  49. int addLBItem( const char* itemName, unsigned long color, int ID);
  50. int addItem( int ID, unsigned long color, int LBid );
  51. void addObjectiveButton( float fMakerX, float fMarkerY, int count, int priority,
  52. float mapWidth, float mapHeight, bool display );
  53. void setupDropZone( float fX, float fY, float mapWidth, float mapHeight );
  54. float runTime;
  55. bool bClicked;
  56. SimpleCamera camera;
  57. };
  58. //*************************************************************************************************
  59. #endif // end of file ( MissionBriefingScreen.h )