Package net.myexperiments.viciouscycle.controller

Source Code of net.myexperiments.viciouscycle.controller.VCGOS

package net.myexperiments.viciouscycle.controller;

import java.io.IOException;
import java.util.logging.ConsoleHandler;
import java.util.logging.FileHandler;

import net.myexperiments.gos.GOSSystem;
import net.myexperiments.gos.World;
import net.myexperiments.viciouscycle.VCGame;

public class VCGOS {
public World world;
public VCGame gtge;

public VCGOS() throws IOException {

  boolean append = true;
    FileHandler handler = new FileHandler("gos.log", append);
    GOSSystem.getLogger().addHandler(handler);
    GOSSystem.getLogger().addHandler(new ConsoleHandler());
     

/**
*
*     Setup table names
* @return
*
*
*/

}
public void InitGOS(VCGame view) throws IOException{

world = new World();
world.CurrentTurn = 0;
gtge = view;

//TheGame.SystemConfig = new Properties();
//TheGame.SystemConfig.load(new FileInputStream(GOSSystem.CONFIGDIRECTORY
//  + File.separatorChar + "SysConfig.properties"));


world.InitWorld();

}

public void update() {
  world.GOSPS.SendMail();
  world.scheduler.EventLoop();
}


}
TOP

Related Classes of net.myexperiments.viciouscycle.controller.VCGOS

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.