mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +02:00
Solved #985.
This commit is contained in:
@@ -1716,7 +1716,7 @@ void VCAI::tryRealize(CGoal g)
|
|||||||
{
|
{
|
||||||
case EXPLORE:
|
case EXPLORE:
|
||||||
{
|
{
|
||||||
assert(0); //this goal is not elementar!
|
throw cannotFulfillGoalException("EXPLORE is not a elementar goal!");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case RECRUIT_HERO:
|
case RECRUIT_HERO:
|
||||||
@@ -2079,7 +2079,7 @@ int3 VCAI::explorationBestNeighbour(int3 hpos, int radius, const CGHeroInstance
|
|||||||
int3 VCAI::explorationNewPoint(int radius, const CGHeroInstance * h, std::vector<std::vector<int3> > &tiles)
|
int3 VCAI::explorationNewPoint(int radius, const CGHeroInstance * h, std::vector<std::vector<int3> > &tiles)
|
||||||
{
|
{
|
||||||
TimeCheck tc("looking for new exploration point");
|
TimeCheck tc("looking for new exploration point");
|
||||||
tlog0 << "Looking for an another place for exploration...\n";
|
PNLOG("Looking for an another place for exploration...");
|
||||||
tiles.resize(radius);
|
tiles.resize(radius);
|
||||||
|
|
||||||
foreach_tile_pos([&](const int3 &pos)
|
foreach_tile_pos([&](const int3 &pos)
|
||||||
@@ -2320,6 +2320,8 @@ int3 whereToExplore(const CGHeroInstance *h)
|
|||||||
|
|
||||||
TSubgoal CGoal::whatToDoToAchieve()
|
TSubgoal CGoal::whatToDoToAchieve()
|
||||||
{
|
{
|
||||||
|
BNLOG("Decomposing goal of type %s", goalName(goalType));
|
||||||
|
INDENT;
|
||||||
switch(goalType)
|
switch(goalType)
|
||||||
{
|
{
|
||||||
case WIN:
|
case WIN:
|
||||||
|
Reference in New Issue
Block a user