mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
- VCMI can now be compiled in C++20 mode - Replaced all references to C++17 with C++20 - Boost 1.74 is now set as minimal version (older version might work but untested) - Updated documentation to reflect required versions of compilers / libraries - Removed excessive fail-fast / continue-on-error from CI
38 lines
614 B
C++
38 lines
614 B
C++
/*
|
|
* WaterRoutes.h, part of VCMI engine
|
|
*
|
|
* Authors: listed in file AUTHORS in main folder
|
|
*
|
|
* License: GNU General Public License v2.0 or later
|
|
* Full text of license available in license.txt file, in main folder
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "../Zone.h"
|
|
|
|
VCMI_LIB_NAMESPACE_BEGIN
|
|
|
|
struct RouteInfo
|
|
{
|
|
rmg::Area blocked;
|
|
int3 visitable;
|
|
int3 boarding;
|
|
rmg::Area water;
|
|
};
|
|
|
|
class WaterRoutes: public Modificator
|
|
{
|
|
public:
|
|
MODIFICATOR(WaterRoutes);
|
|
|
|
void process() override;
|
|
void init() override;
|
|
char dump(const int3 &) override;
|
|
|
|
private:
|
|
std::vector<RouteInfo> result;
|
|
};
|
|
|
|
VCMI_LIB_NAMESPACE_END
|