public State(NPCBrain x) { this._worldGrid = x._worldGrid; _npc = x.npc; this._brain = x; }
public AvoidObstacle(NPCBrain x) : base(x) { this._goal = Vector3.down; this._path = new Stack <WorldGrid.Cell>(); AStar(this._npc.getCellNoWater(), findTargetCell(x.npc.getDir())); }
public FleeDanger(NPCBrain x) : base(x) { x._speed = 4; }
public Roam(NPCBrain x) : base(x) { lastCell = new Vector3(-1000, -1000, -1000); }