Human AI improvements, minor UI tweaking

This commit is contained in:
Regalis
2015-11-25 16:04:51 +02:00
parent c456fa3c90
commit 4b5126675c
42 changed files with 687 additions and 321 deletions
@@ -9,9 +9,16 @@ namespace Barotrauma
int currentIndex;
public SteeringPath()
public bool Unreachable
{
get;
private set;
}
public SteeringPath(bool unreachable = false)
{
nodes = new List<WayPoint>();
Unreachable = unreachable;
}
public void AddNode(WayPoint node)
@@ -20,6 +27,20 @@ namespace Barotrauma
nodes.Add(node);
}
public int CurrentIndex
{
get { return currentIndex; }
}
public WayPoint PrevNode
{
get
{
if (currentIndex-1 < 0 || currentIndex-1 > nodes.Count - 1) return null;
return nodes[currentIndex-1];
}
}
public WayPoint CurrentNode
{
get