resetaction.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. ** Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  3. **
  4. ** File: resetaction.h
  5. **
  6. ** Author:
  7. **
  8. ** Description:
  9. ** Header file for the training library "resetaction" interface.
  10. **
  11. ** History:
  12. */
  13. #ifndef _RESET_ACTION_H_
  14. #define _RESET_ACTION_H_
  15. #ifndef _ACTION_H_
  16. #include "Action.h"
  17. #endif //_ACTION_H_
  18. #ifndef _GOAL_H_
  19. #include "Goal.h"
  20. #endif //_GOAL_H_
  21. namespace Training
  22. {
  23. //------------------------------------------------------------------------------
  24. // class definitions
  25. //------------------------------------------------------------------------------
  26. class ResetAction : public Action
  27. {
  28. public:
  29. enum ResetStage {
  30. RESET_START,
  31. RESET_NOTIFY,
  32. RESET_SPECIFIC_NOTIFY,
  33. RESET_COMPLETE
  34. };
  35. public:
  36. /* void */ ResetAction (Goal* pGoal, SoundID soundID = NA);
  37. virtual /* void */ ~ResetAction (void);
  38. virtual void Execute (void);
  39. static void Initialize (void);
  40. protected:
  41. void PlaySound (SoundID soundID, ResetStage nextStage);
  42. protected:
  43. Goal* m_pGoal;
  44. SoundID m_soundID;
  45. static int m_iResetCount;
  46. ResetStage m_resetStage;
  47. };
  48. //------------------------------------------------------------------------------
  49. }
  50. #endif //_RESET_ACTION_H_