Training.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. ** Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  3. **
  4. ** File: training.h
  5. **
  6. ** Author:
  7. **
  8. ** Description:
  9. ** Header file for the training library external interfaces.
  10. **
  11. ** History:
  12. */
  13. #ifndef _TRAINING_H_
  14. #define _TRAINING_H_
  15. namespace Training
  16. {
  17. //------------------------------------------------------------------------------
  18. // mission ids
  19. //------------------------------------------------------------------------------
  20. enum
  21. {
  22. c_TM_1_Introduction = 1,
  23. c_TM_2_Basic_Flight = 2,
  24. c_TM_3_Basic_Weaponry = 3,
  25. c_TM_4_Enemy_Engagement = 4,
  26. c_TM_5_Command_View = 5,
  27. c_TM_6_Practice_Arena = 6,
  28. c_TM_7_Live = 7
  29. };
  30. //------------------------------------------------------------------------------
  31. // primary interface to the training missions
  32. //------------------------------------------------------------------------------
  33. bool StartMission (int iMissionIndex);
  34. bool HandleMission (void);
  35. bool EndMission (void);
  36. void SetSkipPostSlideshow (void);
  37. bool IsTraining (void);
  38. bool IsInstalled (void);
  39. int GetTrainingMissionID (void);
  40. SectorID GetStartSectorID (void);
  41. void SetupShipAndCamera (void);
  42. //------------------------------------------------------------------------------
  43. // event trapping
  44. //------------------------------------------------------------------------------
  45. void RecordChat (ChatTarget recipient);
  46. bool RecordKeyPress (TrekKey key);
  47. bool ShipLanded (void);
  48. void ShipDied (ImodelIGC* pLauncher);
  49. bool RestoreShip (void);
  50. //------------------------------------------------------------------------------
  51. // control constraint functions - note that these could be inlined
  52. //------------------------------------------------------------------------------
  53. ControlData& ApproveControls (ControlData& inputControls);
  54. int ApproveActions (int iInputMask);
  55. //------------------------------------------------------------------------------
  56. }
  57. #endif //_TRAINING_H_