Trade.h 608 B

123456789101112131415161718192021222324252627282930313233343536
  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. struct HeroPtr;
  13. class AIGateway;
  14. class FuzzyHelper;
  15. namespace Goals
  16. {
  17. class DLL_EXPORT Trade : public CGoal<Trade>
  18. {
  19. public:
  20. Trade()
  21. : CGoal(Goals::TRADE)
  22. {
  23. }
  24. Trade(int rid, int val, int Objid)
  25. : CGoal(Goals::TRADE)
  26. {
  27. resID = rid;
  28. value = val;
  29. objid = Objid;
  30. }
  31. virtual bool operator==(const Trade & other) const override;
  32. };
  33. }