Examples of EnvironmentState


Examples of barsuift.simLife.environment.EnvironmentState

            trees.add(treeStateFactory.createRandomTreeState(translationVector, nbBranches, height));
        }
        Set<TreeLeafState> fallenLeaves = new HashSet<TreeLeafState>(0);

        EnvironmentStateFactory envStateFactory = new EnvironmentStateFactory();
        EnvironmentState environment = envStateFactory.createEnvironmentState();

        return new UniverseState(UNIVERSE_COUNT++, 0, trees, fallenLeaves, environment, new TimeCounterState());
    }
View Full Code Here

Examples of barsuift.simLife.environment.EnvironmentState

    public UniverseState createEmptyUniverseState() {
        Set<TreeState> trees = new HashSet<TreeState>(0);
        Set<TreeLeafState> fallenLeaves = new HashSet<TreeLeafState>(0);
        EnvironmentStateFactory envStateFactory = new EnvironmentStateFactory();
        EnvironmentState environment = envStateFactory.createEnvironmentState();
        return new UniverseState(UNIVERSE_COUNT++, 0, trees, fallenLeaves, environment, new TimeCounterState());
    }
View Full Code Here

Examples of barsuift.simLife.environment.EnvironmentState

        return new UniverseState(createRandomId(), age, trees, fallenLeaves, createSpecificEnvironmentState(),
                createSpecificTimeCounterState());
    }

    public static EnvironmentState createRandomEnvironmentState() {
        return new EnvironmentState(createRandomSunState());
    }
View Full Code Here

Examples of barsuift.simLife.environment.EnvironmentState

     * Create a specific enviroment state. The sun state is made through the {@link #createSpecificSunState()} method.
     *
     * @return
     */
    public static EnvironmentState createSpecificEnvironmentState() {
        return new EnvironmentState(createSpecificSunState());
    }
View Full Code Here

Examples of barsuift.simLife.environment.EnvironmentState

        super();
        this.id = new Long(0);
        this.age = 0;
        this.trees = new HashSet<TreeState>();
        this.fallenLeaves = new HashSet<TreeLeafState>();
        this.environment = new EnvironmentState();
        this.timeCounter = new TimeCounterState();
    }
View Full Code Here

Examples of barsuift.simLife.environment.EnvironmentState

        }
        this.fallenLeaves = new HashSet<TreeLeafState>();
        for (TreeLeafState treeLeafState : copy.fallenLeaves) {
            fallenLeaves.add(new TreeLeafState(treeLeafState));
        }
        this.environment = new EnvironmentState(copy.environment);
        this.timeCounter = copy.timeCounter;
    }
View Full Code Here

Examples of barsuift.simLife.environment.EnvironmentState

    public UniverseState() {
        super();
        this.trees = new HashSet<TreeState>();
        this.fallenLeaves = new HashSet<TreeLeafState>();
        this.environment = new EnvironmentState();
        this.physics = new PhysicsState();
        this.synchronizerState = new SynchronizerCoreState();
        this.dateHandler = new DateHandlerState();
        this.univ3DState = new Universe3DState();
    }
View Full Code Here

Examples of barsuift.simLife.environment.EnvironmentState

        return new UniverseState(age, fpsShowing, trees, fallenLeaves, createSpecificEnvironmentState(),
                createSpecificTimeCounterState());
    }

    public static EnvironmentState createRandomEnvironmentState() {
        return new EnvironmentState(createRandomSunState());
    }
View Full Code Here

Examples of barsuift.simLife.environment.EnvironmentState

     * Create a specific environment state. The sun state is made through the {@link #createSpecificSunState()} method.
     *
     * @return
     */
    public static EnvironmentState createSpecificEnvironmentState() {
        return new EnvironmentState(createSpecificSunState());
    }
View Full Code Here
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.