GetShipHasAmmoCondition.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. ** Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  3. **
  4. ** File: getshiphasammocondition.h
  5. **
  6. ** Author:
  7. **
  8. ** Description:
  9. ** Header file for the training library "getshiphasammocondition" interface.
  10. **
  11. ** History:
  12. */
  13. #ifndef _GET_SHIP_HAS_AMMO_CONDITION_H_
  14. #define _GET_SHIP_HAS_AMMO_CONDITION_H_
  15. #ifndef _CONDITION_H_
  16. #include "Condition.h"
  17. #endif //_CONDITION_H_
  18. namespace Training
  19. {
  20. //------------------------------------------------------------------------------
  21. // class definitions
  22. //------------------------------------------------------------------------------
  23. class GetShipHasAmmoCondition : public Condition
  24. {
  25. public:
  26. /* void */ GetShipHasAmmoCondition (const TRef<IshipIGC>& ship, short sCount = -1);
  27. virtual /* void */ ~GetShipHasAmmoCondition (void);
  28. virtual bool Evaluate (void);
  29. protected:
  30. TRef<IshipIGC> m_ship;
  31. short m_sCount;
  32. };
  33. //------------------------------------------------------------------------------
  34. }
  35. #endif //_GET_SHIP_HAS_AMMO_CONDITION_H_