2022-08-09 07:54:32 +02:00
|
|
|
/*
|
|
|
|
* Functions.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"
|
|
|
|
#include <boost/heap/priority_queue.hpp> //A*
|
|
|
|
|
2022-07-26 15:07:42 +02:00
|
|
|
VCMI_LIB_NAMESPACE_BEGIN
|
|
|
|
|
2022-08-09 07:54:32 +02:00
|
|
|
class RmgMap;
|
|
|
|
class ObjectManager;
|
|
|
|
class ObjectTemplate;
|
|
|
|
class CMapGenerator;
|
|
|
|
|
|
|
|
class rmgException : public std::exception
|
|
|
|
{
|
|
|
|
std::string msg;
|
|
|
|
public:
|
|
|
|
explicit rmgException(const std::string& _Message) : msg(_Message)
|
|
|
|
{
|
|
|
|
}
|
2024-02-13 23:42:31 +02:00
|
|
|
|
|
|
|
const char *what() const noexcept override
|
2022-08-09 07:54:32 +02:00
|
|
|
{
|
|
|
|
return msg.c_str();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2024-11-23 09:25:55 +02:00
|
|
|
void replaceWithCurvedPath(rmg::Path & path, const Zone & zone, const int3 & src, bool onlyStraight = true);
|
2024-11-22 10:28:37 +02:00
|
|
|
|
2022-08-09 07:54:32 +02:00
|
|
|
rmg::Tileset collectDistantTiles(const Zone & zone, int distance);
|
|
|
|
|
2024-06-01 17:28:17 +02:00
|
|
|
int chooseRandomAppearance(vstd::RNG & generator, si32 ObjID, TerrainId terrain);
|
2022-08-09 07:54:32 +02:00
|
|
|
|
2022-07-26 15:07:42 +02:00
|
|
|
|
|
|
|
VCMI_LIB_NAMESPACE_END
|