From 863eba4218517927e37cc4382dbd6e6ea0eab76c Mon Sep 17 00:00:00 2001 From: inter Date: Thu, 4 Sep 2025 14:08:42 +0800 Subject: [PATCH] Add File --- .../org/dromara/easyai/gameRobot/Action.java | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/main/java/org/dromara/easyai/gameRobot/Action.java 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; + } + + +}