77 lines
2.3 KiB
Java
77 lines
2.3 KiB
Java
package p000;
|
|
|
|
import java.util.Enumeration;
|
|
import java.util.Hashtable;
|
|
|
|
/* renamed from: ar */
|
|
/* loaded from: microcounterstrike.jar:ar.class */
|
|
public class RoundBasedGameMode extends GameSessionLoop {
|
|
|
|
/* renamed from: e */
|
|
private int value90 = 0;
|
|
|
|
/* renamed from: f */
|
|
private int value91 = 0;
|
|
|
|
@Override // p000.GameSessionLoop
|
|
/* renamed from: c */
|
|
public final void onSessionStart() {
|
|
PlayerManager.getInstance().respawnAll();
|
|
if (PlatformServices.getInstance().getBoolean141()) {
|
|
BulletHoleManager.getInstance().execute305(MapManager.getInstance().world);
|
|
}
|
|
}
|
|
|
|
@Override // p000.GameSessionLoop
|
|
/* renamed from: d */
|
|
public final void onRoundStart() {
|
|
InputStateBase.getInstance().execute126(-1, false);
|
|
}
|
|
|
|
@Override // p000.GameSessionLoop
|
|
/* renamed from: e */
|
|
public final void onSessionEnd() {
|
|
start();
|
|
}
|
|
|
|
@Override // p000.GameSessionLoop
|
|
/* renamed from: f */
|
|
public final void cleanupNetworking() {
|
|
super.cleanupNetworking();
|
|
this.value90 = 0;
|
|
this.value91 = 0;
|
|
GameLoadingThread.getInstance();
|
|
GameLoadingThread.execute98();
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* renamed from: a */
|
|
public final void execute123(PlayerEntityBase abstractC0052u) {
|
|
Combatant interfaceC0030bc = (Combatant) abstractC0052u;
|
|
int iMo92m = interfaceC0030bc.getTeamId();
|
|
boolean z = true;
|
|
Hashtable hashtable = PlayerManager.getInstance().playersById;
|
|
Enumeration enumerationKeys = hashtable.keys();
|
|
while (true) {
|
|
if (!enumerationKeys.hasMoreElements()) {
|
|
break;
|
|
}
|
|
Combatant interfaceC0030bc2 = (Combatant) hashtable.get((Integer) enumerationKeys.nextElement());
|
|
if (interfaceC0030bc2.getTeamId() == iMo92m && interfaceC0030bc2.getHealth() > 0) {
|
|
z = false;
|
|
break;
|
|
}
|
|
}
|
|
PlayerManager.getInstance();
|
|
if (z) {
|
|
if (interfaceC0030bc.getTeamId() == 0) {
|
|
this.roundEndTriggered = 2;
|
|
this.value91++;
|
|
} else {
|
|
this.roundEndTriggered = 1;
|
|
this.value90++;
|
|
}
|
|
}
|
|
}
|
|
}
|