SetAutopilotAction.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. ** Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  3. **
  4. ** File: setautopilotaction.h
  5. **
  6. ** Author:
  7. **
  8. ** Description:
  9. ** Header file for the training library "setautopilotaction" interface.
  10. **
  11. ** History:
  12. */
  13. #ifndef _SET_AUTOPILOT_ACTION_H_
  14. #define _SET_AUTOPILOT_ACTION_H_
  15. #ifndef _ACTION_H_
  16. #include "Action.h"
  17. #endif// _ACTION_H_
  18. #ifndef _ABSTRACT_TARGET_H_
  19. #include "AbstractTarget.h"
  20. #endif //_ABSTRACT_TARGET_H_
  21. namespace Training
  22. {
  23. //------------------------------------------------------------------------------
  24. // class definitions
  25. //------------------------------------------------------------------------------
  26. class SetAutopilotAction : public Action
  27. {
  28. public:
  29. /* void */ SetAutopilotAction (IshipIGC* pShip, bool bNewValue = true);
  30. /* void */ SetAutopilotAction (ShipID shipID, bool bNewValue = true);
  31. virtual /* void */ ~SetAutopilotAction (void);
  32. virtual void Execute (void);
  33. protected:
  34. AbstractTarget* m_pShip;
  35. bool m_bNewValue;
  36. };
  37. //------------------------------------------------------------------------------
  38. }
  39. #endif //_SET_AUTOPILOT_ACTION_H_