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