初次提交
This commit is contained in:
parent
9338afe26d
commit
85435894fa
24
src/main/java/com/hivekion/Test.java
Normal file
24
src/main/java/com/hivekion/Test.java
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
package com.hivekion;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* [类的简要说明]
|
||||||
|
* <p>
|
||||||
|
* [详细描述,可选]
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* @author LiDongYU
|
||||||
|
* @since 2025/7/22
|
||||||
|
*/
|
||||||
|
public class Test {
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
String test = "id\n"
|
||||||
|
+ "general_time\n"
|
||||||
|
+ "from_resource_id\n"
|
||||||
|
+ "supplier_type\n"
|
||||||
|
+ "supplier_num\n"
|
||||||
|
+ "lat\n"
|
||||||
|
+ "lng";
|
||||||
|
System.out.println(test.toUpperCase());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
package com.hivekion.enums;
|
package com.hivekion.enums;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* [类的简要说明]
|
* [类的简要说明]
|
||||||
* <p>
|
* <p>
|
||||||
|
|
@ -10,9 +12,20 @@ package com.hivekion.enums;
|
||||||
* @since 2025/7/22
|
* @since 2025/7/22
|
||||||
*/
|
*/
|
||||||
public enum TaskEnum {
|
public enum TaskEnum {
|
||||||
MOVE,
|
|
||||||
|
|
||||||
FIGHT,
|
MOVE(1),
|
||||||
|
|
||||||
|
FIGHT(2),
|
||||||
|
SUPPLIER_WATER(5),
|
||||||
|
SUPPLIER_MEDICAL(8),
|
||||||
|
SUPPLIER_FOOD(7),
|
||||||
|
SUPPLIER_AMMO(4),
|
||||||
|
SUPPLIER_FUEL(6);
|
||||||
|
@Getter
|
||||||
|
private int code;
|
||||||
|
|
||||||
|
TaskEnum(int code) {
|
||||||
|
this.code = code;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ public class Room implements AutoCloseable {
|
||||||
|
|
||||||
private int mag = 1;
|
private int mag = 1;
|
||||||
|
|
||||||
|
|
||||||
//获取剩余时间
|
//获取剩余时间
|
||||||
public long getDuringTime() {
|
public long getDuringTime() {
|
||||||
return duringTime.get();
|
return duringTime.get();
|
||||||
|
|
@ -64,6 +65,7 @@ public class Room implements AutoCloseable {
|
||||||
* @param time 总时间
|
* @param time 总时间
|
||||||
*/
|
*/
|
||||||
public void start(long time) {
|
public void start(long time) {
|
||||||
|
|
||||||
totalTime.set(time);
|
totalTime.set(time);
|
||||||
startTask();
|
startTask();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user