Game Development Reference
In-Depth Information
return false;
}
11. The example implementation also requires that we set the resource for that state
in the form of a spatial. This is so that the units know where they can pick up
some of the resource. It can be set somewhere in the application, as shown in the
following code:
aiAppState.setResource(GatherFoodState.class,
foodSpatial);
aiAppState.setResource(GatherWoodState.class,
woodSpatial);
Search WWH ::




Custom Search