onetimeaction.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. ** Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  3. **
  4. ** File: onetimeaction.h
  5. **
  6. ** Author:
  7. **
  8. ** Description:
  9. ** Header file for the training library "onetimeaction" interface.
  10. **
  11. ** History:
  12. */
  13. #ifndef _ONE_TIME_ACTION_H_
  14. #define _ONE_TIME_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 OneTimeAction : public Action
  24. {
  25. public:
  26. /* void */ OneTimeAction (Action* pAction);
  27. virtual /* void */ ~OneTimeAction (void);
  28. virtual void Execute (void);
  29. virtual void Stop (void);
  30. protected:
  31. Action* m_pAction;
  32. bool m_bHasExecuted;
  33. };
  34. //------------------------------------------------------------------------------
  35. }
  36. #endif //_ONE_TIME_ACTION_H_