TaskMetaData now displays info about goal and location of the task.

This commit is contained in:
2017-12-12 01:38:22 -08:00
parent 34d072e7a4
commit 4b62f3746e
1 changed files with 9 additions and 3 deletions

View File

@ -138,6 +138,12 @@ namespace StarAI.ExecutionCore
s += "Queued Task:"+"\n"; s += "Queued Task:"+"\n";
s += " TaskName: " + this.name + "\n"; s += " TaskName: " + this.name + "\n";
s += " TaskCost: " + this.cost + "\n"; s += " TaskCost: " + this.cost + "\n";
if (this.locationPrerequisite.location != null)
{
s += " Task Location: " + this.locationPrerequisite.location.name + "\n";
}
TileNode t = pathsToTake.ElementAt(pathsToTake.Count - 1).ElementAt(pathsToTake.ElementAt(pathsToTake.Count - 1).Count-1);
s += " Goal Location: " + t.thisLocation.name + " " + t.tileLocation;
s += " Task Requires Stamina: " + this.staminaPrerequisite.requiresStamina + "\n"; s += " Task Requires Stamina: " + this.staminaPrerequisite.requiresStamina + "\n";
if(this.staminaPrerequisite.requiresStamina==true) s += " Requires : " + this.staminaPrerequisite.staminaCost + "Stamina.\n"; if(this.staminaPrerequisite.requiresStamina==true) s += " Requires : " + this.staminaPrerequisite.staminaCost + "Stamina.\n";