Examples of GalacticOptions


Examples of com.barrybecker4.game.multiplayer.galactic.GalacticOptions

     * @return galactic game optiosn tab panel.
     */
    @Override
    protected JComponent[] getControllerParamComponents() {

        GalacticOptions options = (GalacticOptions)controller_.getOptions();

        numPlanets_ =  new NumberInput( GameContext.getLabel("NUMBER_OF_PLANETS"), options.getNumPlanets(),
                                        GameContext.getLabel("NUMBER_OF_PLANETS_TIP"),
                                        Galaxy.MIN_NUM_PLANETS, Galaxy.MAX_NUM_PLANETS, true);
        planetProductionRate_ =
                new NumberInput(GameContext.getLabel("PLANETS_PRODUCTION_RATE"), options.getPlanetProductionRate(),
                                GameContext.getLabel("PLANETS_PRODUCTION_RATE_TIP"), 0, 10, true);
        initialFleetSize_ = new NumberInput(GameContext.getLabel("INITIAL_FLEET_SIZE"), options.getInitialFleetSize(),
                                            GameContext.getLabel("INITIAL_FLEET_SIZE_TIP"), 1, 100, true);
        neutralsBuild_ = new JCheckBox( GameContext.getLabel("SHOULD_NEUTRALS_BUILD"), options.doNeutralsBuild() );
        neutralsBuild_.setToolTipText(GameContext.getLabel("SHOULD_NEUTRALS_BUILD_TIP"));
        maxYearsToPlay_ =  new NumberInput(GameContext.getLabel("MAX_YEARS_TO_PLAY"), options.getMaxYearsToPlay(),
                                           GameContext.getLabel("MAX_YEARS_TO_PLAY_TIP"), 1, 100, true);

        initMultiControllerParamComponents(options);
        return new JComponent[] {
            numPlanets_, planetProductionRate_, initialFleetSize_, neutralsBuild_, maxYearsToPlay_,
View Full Code Here

Examples of com.barrybecker4.game.multiplayer.galactic.GalacticOptions

    }


    @Override
    public GameOptions getOptions() {
        return new GalacticOptions(maxNumPlayers_.getIntValue(),
                                   numRobotPlayers_.getIntValue(),
                                   numPlanets_.getIntValue(),
                                   planetProductionRate_.getIntValue(),
                                   maxYearsToPlay_.getIntValue(),
                                   initialFleetSize_.getIntValue(),
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.