|
@@ -54,96 +54,96 @@ void Team::reset()
|
|
double Team::getMaxEnergieBonus() const
|
|
double Team::getMaxEnergieBonus() const
|
|
{
|
|
{
|
|
double ret = maxEnergieS;
|
|
double ret = maxEnergieS;
|
|
- for( auto *i = &spieler->getArray(); i && i->set; i = i->next )
|
|
|
|
- ret += i->var->getTeamMaxEnergieBonus();
|
|
|
|
|
|
+ for( auto i = spieler->getIterator(); i; i++ )
|
|
|
|
+ ret += i->getTeamMaxEnergieBonus();
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
double Team::getMaxStabilityBonus() const
|
|
double Team::getMaxStabilityBonus() const
|
|
{
|
|
{
|
|
double ret = maxStabilityS;
|
|
double ret = maxStabilityS;
|
|
- for( auto *i = &spieler->getArray(); i && i->set; i = i->next )
|
|
|
|
- ret += i->var->getTeamMaxStabilityBonus();
|
|
|
|
|
|
+ for( auto i = spieler->getIterator(); i; i++ )
|
|
|
|
+ ret += i->getTeamMaxStabilityBonus();
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
double Team::getReperaturBonus() const
|
|
double Team::getReperaturBonus() const
|
|
{
|
|
{
|
|
double ret = reparaturS;
|
|
double ret = reparaturS;
|
|
- for( auto *i = &spieler->getArray(); i && i->set; i = i->next )
|
|
|
|
- ret += i->var->getTeamReparaturBonus();
|
|
|
|
|
|
+ for( auto i = spieler->getIterator(); i; i++ )
|
|
|
|
+ ret += i->getTeamReparaturBonus();
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
double Team::getLaserIntensityBonus() const
|
|
double Team::getLaserIntensityBonus() const
|
|
{
|
|
{
|
|
double ret = laserIntensityS;
|
|
double ret = laserIntensityS;
|
|
- for( auto *i = &spieler->getArray(); i && i->set; i = i->next )
|
|
|
|
- ret += i->var->getTeamLaserIntensityBonus();
|
|
|
|
|
|
+ for( auto i = spieler->getIterator(); i; i++ )
|
|
|
|
+ ret += i->getTeamLaserIntensityBonus();
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
double Team::getLaserEffizienzBonus() const
|
|
double Team::getLaserEffizienzBonus() const
|
|
{
|
|
{
|
|
double ret = laserEffizienzS;
|
|
double ret = laserEffizienzS;
|
|
- for( auto *i = &spieler->getArray(); i && i->set; i = i->next )
|
|
|
|
- ret += i->var->getTeamLaserEffizienzBonus();
|
|
|
|
|
|
+ for( auto i = spieler->getIterator(); i; i++ )
|
|
|
|
+ ret += i->getTeamLaserEffizienzBonus();
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
double Team::getAkkuLeistungBonus() const
|
|
double Team::getAkkuLeistungBonus() const
|
|
{
|
|
{
|
|
double ret = akkuLeistungS;
|
|
double ret = akkuLeistungS;
|
|
- for( auto *i = &spieler->getArray(); i && i->set; i = i->next )
|
|
|
|
- ret += i->var->getTeamAkkuLeistungBonus();
|
|
|
|
|
|
+ for( auto i = spieler->getIterator(); i; i++ )
|
|
|
|
+ ret += i->getTeamAkkuLeistungBonus();
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
double Team::getLaserTempoBonus() const
|
|
double Team::getLaserTempoBonus() const
|
|
{
|
|
{
|
|
double ret = laserTempoS;
|
|
double ret = laserTempoS;
|
|
- for( auto *i = &spieler->getArray(); i && i->set; i = i->next )
|
|
|
|
- ret += i->var->getTeamLaserTempoBonus();
|
|
|
|
|
|
+ for( auto i = spieler->getIterator(); i; i++ )
|
|
|
|
+ ret += i->getTeamLaserTempoBonus();
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
double Team::getBeschleunigungBonus() const
|
|
double Team::getBeschleunigungBonus() const
|
|
{
|
|
{
|
|
double ret = beschleunigungS;
|
|
double ret = beschleunigungS;
|
|
- for( auto *i = &spieler->getArray(); i && i->set; i = i->next )
|
|
|
|
- ret += i->var->getTeamBeschleunigungBonus();
|
|
|
|
|
|
+ for( auto i = spieler->getIterator(); i; i++ )
|
|
|
|
+ ret += i->getTeamBeschleunigungBonus();
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
double Team::getWendigkeitBonus() const
|
|
double Team::getWendigkeitBonus() const
|
|
{
|
|
{
|
|
double ret = wendigkeitS;
|
|
double ret = wendigkeitS;
|
|
- for( auto *i = &spieler->getArray(); i && i->set; i = i->next )
|
|
|
|
- ret += i->var->getTeamWendigkeitBonus();
|
|
|
|
|
|
+ for( auto i = spieler->getIterator(); i; i++ )
|
|
|
|
+ ret += i->getTeamWendigkeitBonus();
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
double Team::getAntriebEffizienzBonus() const
|
|
double Team::getAntriebEffizienzBonus() const
|
|
{
|
|
{
|
|
double ret = antriebEffizienzS;
|
|
double ret = antriebEffizienzS;
|
|
- for( auto *i = &spieler->getArray(); i && i->set; i = i->next )
|
|
|
|
- ret += i->var->getTeamAntriebEffizienzBonus();
|
|
|
|
|
|
+ for( auto i = spieler->getIterator(); i; i++ )
|
|
|
|
+ ret += i->getTeamAntriebEffizienzBonus();
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
double Team::getEnergieSchildBonus() const
|
|
double Team::getEnergieSchildBonus() const
|
|
{
|
|
{
|
|
double ret = energieSchildS;
|
|
double ret = energieSchildS;
|
|
- for( auto *i = &spieler->getArray(); i && i->set; i = i->next )
|
|
|
|
- ret += i->var->getTeamEnergieSchildBonus();
|
|
|
|
|
|
+ for( auto i = spieler->getIterator(); i; i++ )
|
|
|
|
+ ret += i->getTeamEnergieSchildBonus();
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
double Team::getEnergieSchildEffizienzBonus() const
|
|
double Team::getEnergieSchildEffizienzBonus() const
|
|
{
|
|
{
|
|
double ret = energieSchildEffizienzS;
|
|
double ret = energieSchildEffizienzS;
|
|
- for( auto *i = &spieler->getArray(); i && i->set; i = i->next )
|
|
|
|
- ret += i->var->getTeamEnergieSchildEffizienzBonus();
|
|
|
|
|
|
+ for( auto i = spieler->getIterator(); i; i++ )
|
|
|
|
+ ret += i->getTeamEnergieSchildEffizienzBonus();
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|