package eco;

import java.util.Random;
import org.lwjgl.LWJGLException;
import org.lwjgl.input.Keyboard;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;
import org.lwjgl.input.Mouse;

//http://www222.pair.com/sjohn/blueroom/demog.htm

public class Main {

    public static Random random = new Random();
    public static final int fov = 90;
    public static final int height = 620;
    public static final int width = 854;
    public static volatile int year = 1;
    public static volatile int wheatPrice = 20;
    public static volatile int oldtWheat = 0;
    public volatile static int tAcres = 10000;
    public static volatile float fBirthRate = 0.03f;
    public static volatile float fDeathRate = 0.02f;
    public static volatile float wBirthRate = 0.008f;
    public static volatile float wDeathRate = 0.002f;
    public static int unusedpops = 0;
    public static int[] unfilledpops = new int[10000];
    public static Pops[] popArray = new Pops[10000];
    public static int newpops = 0;
    public static int uneatenwheat = 0;
    public static int unusedarray = 2;
    public static int unusedacres = 0;
    public static int aggDemand;
    public static boolean debug;

	public static void main(String[] args) {
	System.out.println("Welcome to EcoLand!");
        init();
        tick();
        System.exit(0);
	}

    public static void tick(){

        for(int i = 1; i < 2000; i++) {
            year = i; //One tick is 1 year
            PopManager.popController();
            int farmPacks = Wheat.farmPacks(tAcres);
            
            int unemployedFarmers = Wheat.unemployedFarmers(farmPacks, PopManager.fPopulation);
            int employedFarmers = Wheat.employedFarmers(PopManager.fPopulation, unemployedFarmers);
            Warrior.wHunger(PopManager.wPopulation);
            Wheat.tWheat(employedFarmers);
            aggDemand = ((Farmer.fHunger * PopManager.fPopulation) + (Warrior.wHunger * PopManager.wPopulation));
            wheatPrice = Market.wheatPrice(wheatPrice);
            Money.tMoney(uneatenwheat, wheatPrice);
            if(debug){
            	OutputManager.printDebugInformation();
            }
            UIManager.update();
            oldtWheat = Wheat.tWheat;
            InputManager.update();
            PopManager.tPop = RenderLink.tryToUpdatePop();
            tAcres= RenderLink.tick(year);

        }
        RenderLink.simDone();
    }


    public static void init() {

        RenderLink.init();
        if (attemptSaveLoad){
        	Util.readSave();
        }
        PopManager.initpops();

	}

}

@@ -1200,16 +1200,170 @@
 n debug;
+%0A    public static boolean fullDebug = false;%0A    %0A    public static boolean attemptSaveLoad = false;%0A    public static final boolean isInEclipse = false;
 %0A%0A%09publi

Update Main.java