新增agent用于帮助快速使用goap

This commit is contained in:
yhh
2020-10-29 17:29:38 +08:00
parent 1a78dada61
commit c9fc9ffea5
4 changed files with 83 additions and 1 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;