jimu-decompiled/sources/com/ubt/jimu/controller/data/command/ShootCommand.java
2025-05-13 19:24:51 +02:00

35 lines
1.2 KiB
Java

package com.ubt.jimu.controller.data.command;
import com.ubt.jimu.controller.data.config.AccumulatorConfig;
import com.ubt.jimu.controller.manager.ICommandExecutor;
import java.util.HashMap;
/* loaded from: classes.dex */
public class ShootCommand extends MoveCommand {
private AccumulatorConfig a;
private int b;
public ShootCommand(AccumulatorConfig accumulatorConfig, int i) {
this.a = accumulatorConfig;
this.b = i;
}
@Override // com.ubt.jimu.controller.data.command.MoveCommand
public void a(ICommandExecutor iCommandExecutor) {
if (this.a != null) {
HashMap hashMap = new HashMap(1);
hashMap.put(Integer.valueOf(this.a.getServoID()), Integer.valueOf(this.a.getLaunchAngle() + 120));
if (iCommandExecutor.a(hashMap, this.b, 0) == 0) {
try {
Thread.sleep(this.b);
} catch (InterruptedException e) {
e.printStackTrace();
Thread.currentThread().interrupt();
}
hashMap.put(Integer.valueOf(this.a.getServoID()), Integer.valueOf(this.a.getStartAngle() + 120));
iCommandExecutor.a(hashMap, 100, 0);
}
}
}
}