90 lines
2.5 KiB
Java
90 lines
2.5 KiB
Java
package p000;
|
|
|
|
import java.util.Vector;
|
|
import javax.microedition.lcdui.Image;
|
|
import javax.microedition.m3g.Camera;
|
|
import javax.microedition.m3g.Image2D;
|
|
|
|
/* renamed from: bf */
|
|
/* loaded from: microcounterstrike.jar:bf.class */
|
|
public final class MuzzleFlashManager {
|
|
|
|
/* renamed from: e */
|
|
private static MuzzleFlashManager muzzleFlashManager154;
|
|
|
|
/* renamed from: a */
|
|
public static Image2D[] texture155;
|
|
|
|
/* renamed from: b */
|
|
public static Image[] image156;
|
|
|
|
/* renamed from: c */
|
|
public static Image2D[] texture157;
|
|
|
|
/* renamed from: d */
|
|
public static Image[] image158;
|
|
|
|
/* renamed from: f */
|
|
private Vector list159 = new Vector();
|
|
|
|
private MuzzleFlashManager() {
|
|
}
|
|
|
|
/* renamed from: a */
|
|
public static MuzzleFlashManager getInstance() {
|
|
if (muzzleFlashManager154 == null) {
|
|
muzzleFlashManager154 = new MuzzleFlashManager();
|
|
}
|
|
return muzzleFlashManager154;
|
|
}
|
|
|
|
/* renamed from: b */
|
|
public static void execute208() {
|
|
image156 = new Image[3];
|
|
texture155 = ResourceLoader.loadImages131("/res/image2d/muzzleflash_r.png", 3, 32, image156);
|
|
image158 = new Image[1];
|
|
texture157 = ResourceLoader.loadImages131("/res/image2d/muzzleflash_p.png", 1, 32, image158);
|
|
}
|
|
|
|
/* renamed from: a */
|
|
public final AnimatedBillboardSprite getAnimatedBillboardSprite209(Camera camera, int i) {
|
|
if (this.list159 == null) {
|
|
this.list159 = new Vector();
|
|
}
|
|
Image2D[] image2DArr = (Image2D[]) null;
|
|
if (i == 1) {
|
|
image2DArr = texture155;
|
|
} else if (i == 2) {
|
|
image2DArr = texture157;
|
|
}
|
|
AnimatedBillboardSprite c0027b = new AnimatedBillboardSprite(image2DArr, camera, 3.0f);
|
|
c0027b.mesh121.setPickingEnable(false);
|
|
this.list159.addElement(c0027b);
|
|
return c0027b;
|
|
}
|
|
|
|
/* renamed from: c */
|
|
public final void execute210() {
|
|
if (this.list159 == null) {
|
|
return;
|
|
}
|
|
for (int i = 0; i < this.list159.size(); i++) {
|
|
Object objElementAt = this.list159.elementAt(i);
|
|
if (objElementAt != null) {
|
|
((AnimatedBillboardSprite) objElementAt).execute184();
|
|
}
|
|
}
|
|
}
|
|
|
|
/* renamed from: d */
|
|
public final void execute211() {
|
|
this.list159 = null;
|
|
}
|
|
|
|
/* renamed from: e */
|
|
public static void execute212() {
|
|
texture155 = null;
|
|
texture157 = null;
|
|
}
|
|
}
|