Ejemplo n.º 1
0
 public PlaceWorldObject(PlaceWorldObjectTask pwo)
 {
     Nodes.Add(new FindPathToDepotWithWorldObject(pwo));
     Nodes.Add(new MovePath());
     // TODO: What if the object is no longer there? Do we then do the right thing?
     Nodes.Add(new PickupWorldObjectFromDepot());
     Nodes.Add(new FindPathToWorldObject());
     Nodes.Add(new MovePath());
     Nodes.Add(new ConstructWorldObject());
 }
 public FindPathToDepotWithWorldObject(PlaceWorldObjectTask pwo)
 {
     _pwo = pwo;
     Nodes.Add(new Action(new ActionDelegate(FindDepot)));
 }