/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.jme3.app.SimpleApplication
 *  com.jme3.asset.AssetManager
 *  com.jme3.bullet.BulletAppState
 *  com.jme3.math.Vector3f
 *  com.jme3.renderer.ViewPort
 *  com.jme3.scene.Node
 *  com.jme3.scene.Spatial
 */
package mygame;

import com.jme3.app.SimpleApplication;
import com.jme3.asset.AssetManager;
import com.jme3.bullet.BulletAppState;
import com.jme3.math.Vector3f;
import com.jme3.renderer.ViewPort;
import com.jme3.scene.Node;
import com.jme3.scene.Spatial;
import java.util.ArrayList;
import java.util.Random;
import mygame.Cross;
import mygame.WalkingEnemy;

public class Exchange {
    public static ArrayList<WalkingEnemy> enemies;
    public static Node rootNode;
    public static BulletAppState bulletAppState;
    public static AssetManager assetManager;
    public static ViewPort viewPort;
    public static SimpleApplication app;
    public static int killed;

    public static int getKilled() {
        return killed;
    }

    public static void setKilled(int killed) {
        Exchange.killed = killed;
    }

    public static SimpleApplication getApp() {
        return app;
    }

    public static void setApp(SimpleApplication app) {
        Exchange.app = app;
    }

    public static AssetManager getAssetManager() {
        return assetManager;
    }

    public static void setAssetManager(AssetManager assetManager) {
        Exchange.assetManager = assetManager;
    }

    public static BulletAppState getBulletAppState() {
        return bulletAppState;
    }

    public static void setBulletAppState(BulletAppState bulletAppState) {
        Exchange.bulletAppState = bulletAppState;
    }

    public static Node getRootNode() {
        return rootNode;
    }

    public static void setRootNode(Node rootNode) {
        Exchange.rootNode = rootNode;
    }

    public Exchange() {
        enemies = new ArrayList();
    }

    public static void removeEnemy(WalkingEnemy en) {
        enemies.remove((Object)en);
    }

    public static ViewPort getViewPort() {
        return viewPort;
    }

    public static void setViewPort(ViewPort viewPort) {
        Exchange.viewPort = viewPort;
    }

    public static void spawnItem(Vector3f place) {
        Random r = new Random();
        if (r.nextInt(100) > 90) {
            Cross cross = new Cross("Cross");
            cross.setLocalTranslation(place);
            cross.setLight();
            rootNode.attachChild((Spatial)cross);
        }
    }
}
