2025-08-13 14:41:15 +02:00
|
|
|
/*
|
|
|
|
|
* StartupBehavior.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 "lib/GameLibrary.h"
|
|
|
|
|
#include "../Goals/CGoal.h"
|
|
|
|
|
#include "../AIUtility.h"
|
|
|
|
|
|
2025-08-13 17:16:27 +02:00
|
|
|
namespace NK2AI
|
2025-08-13 14:41:15 +02:00
|
|
|
{
|
|
|
|
|
namespace Goals
|
|
|
|
|
{
|
|
|
|
|
class StartupBehavior : public CGoal<StartupBehavior>
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
StartupBehavior()
|
|
|
|
|
:CGoal(STARTUP)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2025-08-15 18:30:28 +02:00
|
|
|
TGoalVec decompose(const Nullkiller * aiNk) const override;
|
2025-08-13 14:41:15 +02:00
|
|
|
std::string toString() const override;
|
|
|
|
|
|
|
|
|
|
bool operator==(const StartupBehavior & other) const override
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|