Trade.h 636 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Trade.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "CGoal.h"
  12. namespace NKAI
  13. {
  14. struct HeroPtr;
  15. class AIGateway;
  16. class FuzzyHelper;
  17. namespace Goals
  18. {
  19. class DLL_EXPORT Trade : public CGoal<Trade>
  20. {
  21. public:
  22. Trade()
  23. : CGoal(Goals::TRADE)
  24. {
  25. }
  26. Trade(GameResID rid, int val, int Objid)
  27. : CGoal(Goals::TRADE)
  28. {
  29. resID = rid.getNum();
  30. value = val;
  31. objid = Objid;
  32. }
  33. bool operator==(const Trade & other) const override;
  34. };
  35. }
  36. }