Package multididdy

Source Code of multididdy.MultiDiddy

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package multididdy;

import multididdy_controller.Controller;
import multididdy_debug.Debug;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.SlickException;



/**
*
* @author chris
*/
public class MultiDiddy {
    Controller controller;
   
    MultiDiddy(){
        controller= new Controller();
       
    }
   
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
       
        //set debugging informations
        Debug.setDebugMode(true);
        //print debug informations in color
        Debug.setColorMode(true);
       
        //setting up channels for debugging
        boolean networkDebuggingServer = false;
        boolean networkDebuggingClient = false;
        boolean guiDebugging = false;
        boolean controllerDebugging = false;
        boolean configReaderDebugging = false;
        boolean fileHandlingDebugging = true;
       
        boolean[] debugChannels = {networkDebuggingServer,networkDebuggingClient,guiDebugging,controllerDebugging,configReaderDebugging,fileHandlingDebugging};
       
        //set channels
        Debug.setChannels(debugChannels);
       
        //usage: Debug.p("debug information", <CHANNEL>);
        //<CHANNEL> from 0 - x
       
       
            MultiDiddy diddy=new MultiDiddy();
        try {
            AppGameContainer app = new AppGameContainer(diddy.controller.view);
            app.setDisplayMode(800, 600, false);
            app.start();
        } catch (SlickException ex) {
            ex.printStackTrace();
        }
       
       
    }
}
TOP

Related Classes of multididdy.MultiDiddy

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.