Destination.h 743 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Destination.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 "BattleHex.h"
  12. namespace battle
  13. {
  14. class Unit;
  15. class DLL_LINKAGE Destination
  16. {
  17. public:
  18. Destination();
  19. ~Destination();
  20. explicit Destination(const Unit * destination);
  21. explicit Destination(const BattleHex & destination);
  22. explicit Destination(const Unit * destination, const BattleHex & exactHex);
  23. Destination(const Destination & other);
  24. Destination & operator=(const Destination & other);
  25. const Unit * unitValue;
  26. BattleHex hexValue;
  27. };
  28. using Target = std::vector<Destination>;
  29. }