CommandAcknowledgedCondition.cpp 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. ** Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  3. **
  4. ** File: commandacknowledgedcondition.cpp
  5. **
  6. ** Author:
  7. **
  8. ** Description:
  9. ** Implementation of the training library "commandacknowledgedcondition" interface.
  10. **
  11. ** History:
  12. */
  13. #include "pch.h"
  14. #include "CommandAcknowledgedCondition.h"
  15. namespace Training
  16. {
  17. //------------------------------------------------------------------------------
  18. // class static data
  19. //------------------------------------------------------------------------------
  20. char CommandAcknowledgedCondition::m_cCommandAcknowledged = c_cidDoNothing;
  21. //------------------------------------------------------------------------------
  22. // class methods
  23. //------------------------------------------------------------------------------
  24. /* void */ CommandAcknowledgedCondition::CommandAcknowledgedCondition (char cTargetCommand) :
  25. m_cTargetCommand (cTargetCommand)
  26. {
  27. }
  28. //------------------------------------------------------------------------------
  29. /* void */ CommandAcknowledgedCondition::~CommandAcknowledgedCondition (void)
  30. {
  31. }
  32. //------------------------------------------------------------------------------
  33. bool CommandAcknowledgedCondition::Evaluate (void)
  34. {
  35. return (m_cCommandAcknowledged == m_cTargetCommand) ? true : false;
  36. }
  37. //------------------------------------------------------------------------------
  38. void CommandAcknowledgedCondition::SetCommandAcknowledged (char cAcknowledged)
  39. {
  40. m_cCommandAcknowledged = cAcknowledged;
  41. }
  42. //------------------------------------------------------------------------------
  43. }