初次提交
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;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* [类的简要说明]
|
||||
* <p>
|
||||
|
|
@ -10,9 +12,20 @@ package com.hivekion.enums;
|
|||
* @since 2025/7/22
|
||||
*/
|
||||
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;
|
||||
|
||||
|
||||
//获取剩余时间
|
||||
public long getDuringTime() {
|
||||
return duringTime.get();
|
||||
|
|
@ -64,6 +65,7 @@ public class Room implements AutoCloseable {
|
|||
* @param time 总时间
|
||||
*/
|
||||
public void start(long time) {
|
||||
|
||||
totalTime.set(time);
|
||||
startTask();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user