Package environment

Examples of environment.World


        thisThread.start();
        tm.startTime();
    }

    protected void createWorld(LocalWorldParams params) {
        World world = new World(params.getIdWorld());
        world.setParams(params);
        try {
            world.initializeEnviroinment();
        } catch (IOException ex) {
            Logger.getLogger(God.class.getName()).log(Level.SEVERE, null, ex);
        }
        worlds.add(world);
        if (UserGuiParams.GUI) {
            controller.addWorld(world);
            world.addObserver(controller);
        }
        world.startThread();
    }
View Full Code Here


                killGuiAgent(agent);
            } else {
                controllers.get(idWorld).updateGUIAgent(agent);
            }
        } else if (event.equals(EventConstants.CELL_EVENT)) {
            World world = (World) o;
            int idWorld = world.getId();
            Cell cell = world.getChangedCell();
            controllers.get(idWorld).updateGUICell(cell);
        }
    }
View Full Code Here

TOP

Related Classes of environment.World

Copyright © 2018 www.massapicom. 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.