Beispiel #1
0
    private void setValues()
    {
        valuesPrevious          = values;
        values                  = new Dictionary <string, float> ();
        values["shieldMax"]     = ship.getMaxShield();
        values["shieldCurrent"] = ship.getCurrentShield();
        values["shieldBalance"] = ship.getShieldBalance();

        values["armorMax"]     = ship.getMaxArmor();
        values["armorCurrent"] = ship.getCurrentArmor();
        values["armorBalance"] = ship.getArmorBalance();

        values["hullMax"]     = ship.getMaxHull();
        values["hullCurrent"] = ship.getCurrentHull();
        values["hullBalance"] = ship.getHullBalance();

        values["energyMax"]               = ship.getMaxEnergy();
        values["energyCurrent"]           = ship.getCurrentEnergy();
        values["energyProduction"]        = ship.getEnergyProduction();
        values["energyPassive"]           = ship.getEnergyDrainPassive();
        values["energyActive"]            = ship.getEnergyDrainActive();
        values["energyBalance"]           = values["energyProduction"] - values["energyPassive"] - values["energyActive"];
        values["energyActiveCoefficient"] = ship.getEnergyDrainActiveCoefficient();
        values["energyIsStable"]          = 0f;
        if (ship.isEnergyStable())
        {
            values["energyIsStable"] = 1f;
        }

        values["mass"]               = ship.getMass();
        values["drag"]               = ship.getDrag();
        values["velocityCurrent"]    = ship.getCurrentVelocity();
        values["velocityMax"]        = ship.getMaxVelocity();
        values["velocityMaxCurrent"] = ship.getMaxCurrentVelocity();
        values["engineThrust"]       = ship.getEngineThrust();
        values["maneuverability"]    = ship.getManeuverability();
        values["volume"]             = (float)ship.getVolume();
    }