resetshipaction.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. ** Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  3. **
  4. ** File: resetshipaction.h
  5. **
  6. ** Author:
  7. **
  8. ** Description:
  9. ** Header file for the training library "resetshipaction" interface.
  10. **
  11. ** History:
  12. */
  13. #ifndef _RESET_SHIP_ACTION_H_
  14. #define _RESET_SHIP_ACTION_H_
  15. #ifndef _ACTION_H_
  16. #include "Action.h"
  17. #endif //_ACTION_H_
  18. namespace Training
  19. {
  20. //------------------------------------------------------------------------------
  21. // class definitions
  22. //------------------------------------------------------------------------------
  23. class ResetShipAction : public Action
  24. {
  25. public:
  26. /* void */ ResetShipAction (const TRef<IshipIGC>& ship);
  27. virtual /* void */ ~ResetShipAction (void);
  28. virtual void Execute (void);
  29. protected:
  30. struct State
  31. {
  32. Vector position;
  33. Vector velocity;
  34. Orientation orientation;
  35. Rotation rotation;
  36. float fFuel;
  37. float fShield;
  38. float fHull;
  39. short sAmmo;
  40. float fEnergy;
  41. };
  42. State* m_pState;
  43. TRef<IshipIGC> m_ship;
  44. };
  45. //------------------------------------------------------------------------------
  46. }
  47. #endif //_RESET_SHIP_ACTION_H_