diff --git a/src/main/java/org/dromara/easyai/gameRobot/Action.java b/src/main/java/org/dromara/easyai/gameRobot/Action.java new file mode 100644 index 0000000..12ac7b7 --- /dev/null +++ b/src/main/java/org/dromara/easyai/gameRobot/Action.java @@ -0,0 +1,30 @@ +package org.dromara.easyai.gameRobot; + +import java.util.ArrayList; +import java.util.List; + +public abstract class Action {//动作 + private int actionId;//动作主键 + + public int getActionId() { + return actionId; + } + + public void setActionId(int actionId) {//设置动作id + this.actionId = actionId; + } + + public List action(int[] stateId) { + return new ArrayList<>(); + } + + public int[] actionTest(int[] stateId) { + return new int[0]; + } + + protected int getProfit(int[] stateId) { + return 0; + } + + +}