Examples of TimeCounterState


Examples of barsuift.simLife.time.TimeCounterState

        this.age = 0;
        this.fpsShowing = false;
        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.time.TimeCounterState

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

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

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

Examples of barsuift.simLife.time.TimeCounterState

        boolean fpsShowing = false;
        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(0, fpsShowing, trees, fallenLeaves, environment, new TimeCounterState());
    }
View Full Code Here

Examples of barsuift.simLife.time.TimeCounterState

        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.time.TimeCounterState

    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.time.TimeCounterState

    private TimeCounter counter;

    protected void setUp() throws Exception {
        super.setUp();
        counter = new TimeCounter(new TimeCounterState());
        display = new TimerDisplay(counter);
    }
View Full Code Here

Examples of barsuift.simLife.time.TimeCounterState

        PercentState zenithAngle = new PercentState(PercentHelper.getDecimalValue(50));
        return new SunState(luminosity, riseAngle, zenithAngle);
    }

    public static TimeCounterState createRandomTimeCounterState() {
        return new TimeCounterState(Randomizer.randomBetween(0, 60));
    }
View Full Code Here

Examples of barsuift.simLife.time.TimeCounterState

     * Create specific time counter state with seconds = 22
     *
     * @return
     */
    public static TimeCounterState createSpecificTimeCounterState() {
        return new TimeCounterState(22);
    }
View Full Code Here

Examples of barsuift.simLife.time.TimeCounterState

    private TimeCounter counter;

    protected void setUp() throws Exception {
        super.setUp();
        counter = new TimeCounter(new TimeCounterState());
        display = new TimerDisplay(counter);
    }
View Full Code Here

Examples of barsuift.simLife.time.TimeCounterState

        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
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.