Destination.h 823 B

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