Human AI improvements, minor UI tweaking
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user