1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00
Files
vcmi/AI/Nullkiller2/Goals/StayAtTown.h

37 lines
808 B
C++
Raw Normal View History

2025-08-13 14:41:15 +02:00
/*
* ArmyUpgrade.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 "../Goals/CGoal.h"
#include "../Pathfinding/AINodeStorage.h"
#include "../Analyzers/ArmyManager.h"
#include "../Analyzers/DangerHitMapAnalyzer.h"
2025-08-13 17:16:27 +02:00
namespace NK2AI
2025-08-13 14:41:15 +02:00
{
namespace Goals
{
class DLL_EXPORT StayAtTown : public ElementarGoal<StayAtTown>
{
private:
float movementWasted;
public:
StayAtTown(const CGTownInstance * town, AIPath & path);
bool operator==(const StayAtTown & other) const override;
std::string toString() const override;
void accept(AIGateway * aiGw) override;
2025-08-13 14:41:15 +02:00
float getMovementWasted() const { return movementWasted; }
};
}
}