46 lines
785 B
Java
46 lines
785 B
Java
package com.ubt.jimu.controller.data.action;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class TurnData {
|
|
private int a;
|
|
private int b;
|
|
|
|
public TurnData(int i, int i2) {
|
|
this.a = i;
|
|
this.b = i2;
|
|
}
|
|
|
|
public static int e() {
|
|
return 658;
|
|
}
|
|
|
|
public int a() {
|
|
if (b() == 0) {
|
|
return 0;
|
|
}
|
|
if (b() == 1) {
|
|
return c();
|
|
}
|
|
if (b() == -1) {
|
|
return -c();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public int b() {
|
|
return this.a;
|
|
}
|
|
|
|
public int c() {
|
|
return this.b;
|
|
}
|
|
|
|
public boolean d() {
|
|
return this.b * this.a == 0;
|
|
}
|
|
|
|
public String toString() {
|
|
return "TurnData{direction=" + this.a + ", speed=" + this.b + '}';
|
|
}
|
|
}
|