Package barsuift.simLife.universe.physic

Examples of barsuift.simLife.universe.physic.PhysicsState


    }

    public static PhysicsState createRandomPhysicsState() {
        GravityState gravity = createRandomGravityState();
        Physics3DState physics3D = DisplayDataCreatorForTests.createRandomPhysics3DState();
        return new PhysicsState(gravity, physics3D);
    }
View Full Code Here


    }

    public static PhysicsState createSpecificPhysicsState() {
        GravityState gravity = createSpecificGravityState();
        Physics3DState physics3D = DisplayDataCreatorForTests.createSpecificPhysics3DState();
        return new PhysicsState(gravity, physics3D);
    }
View Full Code Here

        Set<TreeLeafState> fallenLeaves = new HashSet<TreeLeafState>(nbFallenLeaves);
        for (int i = 0; i < nbFallenLeaves; i++) {
            fallenLeaves.add(createRandomTreeLeafState());
        }
        EnvironmentState environmentState = createRandomEnvironmentState();
        PhysicsState physicsState = createRandomPhysicsState();
        SynchronizerCoreState synchronizerState = createRandomSynchronizerCoreState();
        DateHandlerState dateHandler = createRandomDateHandlerState();
        Universe3DState univ3DState = DisplayDataCreatorForTests.createRandomUniverse3DState();
        return new UniverseState(trees, fallenLeaves, environmentState, physicsState, synchronizerState, dateHandler,
                univ3DState);
View Full Code Here

        Set<TreeLeafState> fallenLeaves = new HashSet<TreeLeafState>(nbFallenLeaves);
        for (int i = 0; i < nbFallenLeaves; i++) {
            fallenLeaves.add(createSpecificTreeLeafState());
        }
        EnvironmentState environmentState = createSpecificEnvironmentState();
        PhysicsState physicsState = createSpecificPhysicsState();
        Universe3DState univ3DState = DisplayDataCreatorForTests.createSpecificUniverse3DState();
        SynchronizerCoreState synchronizerState = createSpecificSynchronizerCoreState();
        DateHandlerState dateHandler = createSpecificDateHandlerState();
        return new UniverseState(trees, fallenLeaves, environmentState, physicsState, synchronizerState, dateHandler,
                univ3DState);
View Full Code Here

        Set<TreeLeafState> fallenLeaves = new HashSet<TreeLeafState>(0);

        EnvironmentStateFactory envStateFactory = new EnvironmentStateFactory();
        EnvironmentState environment = envStateFactory.createEnvironmentState();
        PhysicsStateFactory physicsStateFactory = new PhysicsStateFactory();
        PhysicsState physics = physicsStateFactory.createPhysicsState();
        SynchronizerCoreStateFactory synchronizerStateFactory = new SynchronizerCoreStateFactory();
        SynchronizerCoreState synchronizerState = synchronizerStateFactory.createSynchronizerCoreState();
        DateHandlerState dateHandler = new DateHandlerState();

        Universe3DStateFactory univ3DStateFactory = new Universe3DStateFactory();
View Full Code Here

        Set<TreeState> trees = new HashSet<TreeState>(0);
        Set<TreeLeafState> fallenLeaves = new HashSet<TreeLeafState>(0);
        EnvironmentStateFactory envStateFactory = new EnvironmentStateFactory();
        EnvironmentState environment = envStateFactory.createEnvironmentState();
        PhysicsStateFactory physicsStateFactory = new PhysicsStateFactory();
        PhysicsState physics = physicsStateFactory.createPhysicsState();
        SynchronizerCoreStateFactory synchronizerStateFactory = new SynchronizerCoreStateFactory();
        SynchronizerCoreState synchronizerState = synchronizerStateFactory.createSynchronizerCoreState();
        DateHandlerState dateHandler = new DateHandlerState();
        Universe3DStateFactory univ3DStateFactory = new Universe3DStateFactory();
        Universe3DState univ3DState = univ3DStateFactory.createEmptyUniverse3DState();
View Full Code Here

    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

TOP

Related Classes of barsuift.simLife.universe.physic.PhysicsState

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.