Beispiel #1
0
    /**
     * Copy constructor for initializing the race for a player
     */
    public Race(Race race, Player player)
    {
        this.name                  = race.name;
        this.pluralName            = race.pluralName;
        this.prt                   = race.prt;
        this.habLow                = race.habLow;
        this.habHigh               = race.habHigh;
        this.growthRate            = race.growthRate;
        this.colonistsPerResource  = race.colonistsPerResource;
        this.factoryOutput         = race.factoryOutput;
        this.factoryCost           = race.factoryCost;
        this.numFactories          = race.numFactories;
        this.factoriesCostLess     = race.factoriesCostLess;
        this.mineOutput            = race.mineOutput;
        this.mineCost              = race.mineCost;
        this.numMines              = race.numMines;
        this.techsStartHigh        = race.techsStartHigh;
        this.immuneGrav            = race.immuneGrav;
        this.immuneTemp            = race.immuneTemp;
        this.immuneRad             = race.immuneRad;
        this.spendLeftoverPointsOn = race.spendLeftoverPointsOn;
        this.researchCost          = new ResearchCost(race.researchCost);
        //this.player = player;

        this.init();
    }
Beispiel #2
0
    public Race setHumanoid()
    {
        setName("Humanoid");
        setPluralName("Humanoids");

        prt                   = PRT.JoaT;
        habLow                = new Hab(15, 15, 15);
        habHigh               = new Hab(85, 85, 85);
        growthRate            = 15;
        colonistsPerResource  = 1000;
        factoryOutput         = 10;
        factoryCost           = 10;
        numFactories          = 10;
        factoriesCostLess     = false;
        mineOutput            = 10;
        mineCost              = 5;
        numMines              = 10;
        techsStartHigh        = false;
        immuneGrav            = false;
        immuneTemp            = false;
        immuneRad             = false;
        spendLeftoverPointsOn = SpendLeftoverPointsOn.SurfaceMinerals;
        researchCost          = new ResearchCost(ResearchCostLevel.Standard, ResearchCostLevel.Standard, ResearchCostLevel.Standard, ResearchCostLevel.Standard,
                                                 ResearchCostLevel.Standard, ResearchCostLevel.Standard);

        init();

        return(this);
    }
Beispiel #3
0
 public void setSpendLeftoverPointsOn(SpendLeftoverPointsOn spendLeftoverPointsOn)
 {
     this.spendLeftoverPointsOn = spendLeftoverPointsOn;
 }