ScriptedGoalAgent.Goal¶
-
public static class
Goalimplements Serializable¶ The goal and the means for achieving it.
Fields¶
endtype¶
-
GathererTask
endtype¶
starttype¶
-
GathererTask
starttype¶
template¶
-
TemplateView
template¶
Methods¶
tryExecute¶
-
public boolean
tryExecute(StateView state, RelevantStateView relstate, Map<Integer, Action> actions)¶ See if those actions can be done. This is not a final test, merely the best that can be done without fully simulating it. This method alters this map by adding actions.
Parameters: - state –
- relstate –
- actions – A map builder of actions.
Returns: Assign actions