TileInfo.h 873 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * TileInfo.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 "../GameConstants.h"
  12. VCMI_LIB_NAMESPACE_BEGIN
  13. class TileInfo
  14. {
  15. public:
  16. TileInfo();
  17. float getNearestObjectDistance() const;
  18. void setNearestObjectDistance(float value);
  19. bool isBlocked() const;
  20. bool shouldBeBlocked() const;
  21. bool isPossible() const;
  22. bool isFree() const;
  23. bool isUsed() const;
  24. bool isRoad() const;
  25. void setOccupied(ETileType value);
  26. TerrainId getTerrainType() const;
  27. ETileType getTileType() const;
  28. void setTerrainType(TerrainId value);
  29. void setRoadType(RoadId type);
  30. private:
  31. float nearestObjectDistance;
  32. ETileType occupied;
  33. TerrainId terrain;
  34. RoadId roadType;
  35. };
  36. VCMI_LIB_NAMESPACE_END