Exemplo n.º 1
0
 public State(NPCBrain x)
 {
     this._worldGrid = x._worldGrid; _npc = x.npc; this._brain = x;
 }
Exemplo n.º 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()));
 }
Exemplo n.º 3
0
 public FleeDanger(NPCBrain x) : base(x)
 {
     x._speed = 4;
 }
Exemplo n.º 4
0
 public Roam(NPCBrain x) : base(x)
 {
     lastCell = new Vector3(-1000, -1000, -1000);
 }