goap sample

This commit is contained in:
yhh
2020-11-02 11:06:22 +08:00
parent c9fc9ffea5
commit 7268ebab4a
7 changed files with 78 additions and 3 deletions

View File

@@ -262,6 +262,17 @@ declare module es {
findActionIndex(action: Action): number;
}
}
declare module es {
abstract class Agent {
actions: Action[];
_planner: ActionPlanner;
constructor();
plan(debugPlan?: boolean): boolean;
hasActionPlan(): boolean;
abstract getWorldState(): WorldState;
abstract getGoalState(): WorldState;
}
}
declare module es {
class WorldState implements IEquatable<WorldState> {
values: number;