Revert "Add files via upload"

master
Felix Stupp 8 years ago committed by GitHub
parent 542c62cc08
commit b0d13f3216

@ -83,7 +83,7 @@ public abstract class GeneralMap extends World implements ButtonEvent
if ( playerList.length > 4 ) if ( playerList.length > 4 )
{ {
players[4].addToStars(2); players[4].addToStars(2);
} }
} }
@ -614,29 +614,23 @@ public abstract class GeneralMap extends World implements ButtonEvent
// 3. Einheiten durch Kontinente // 3. Einheiten durch Kontinente
// Kontinente durchgehen // Kontinente durchgehen
for ( int i = 1; i <= (continentBoni.length -1); i++ ) for ( int i = 1; i < continentBoni.length; i++ )
{ {
continentArray = giveContinentArray(i); continentArray = giveContinentArray(i);
// Provinzen des aktuellen Kontinents durchgehen // Provinzen des aktuellen Kontinents durchgehen
for ( int p = 0; p < continentArray.length; p++ ) for ( int p = 1; p >= continentArray.length; p++ )
{ {
// Prüfen, ob eine Provinz NICHT dem aktuellen Spieler gehört // Prüfen, ob eine Provinz NICHT dem aktuellen Spieler gehört
/** if ( continentArray[p].getOwner() != currentPlayer ) if ( continentArray[p].getOwner() != currentPlayer )
{ {
break; break;
} }
// Wenn nicht, wird der Kontinent als gecheckt markiert // Wenn nicht, wird der Kontinent als gecheckt markiert
else else
{ {
continentChecked = true; continentChecked = true;
} */ }
System.out.println( continentArray[p].getOwner() );
System.out.println( continentArray[p].getDisplayName() );
System.out.println("===============");
} }
if ( continentChecked == true ) if ( continentChecked == true )
{ {
armiesToPlace = armiesToPlace + continentBoni[i]; armiesToPlace = armiesToPlace + continentBoni[i];
@ -673,7 +667,7 @@ public abstract class GeneralMap extends World implements ButtonEvent
JOptionPane.showMessageDialog(null,"Ungültige Zahl. Bitte eine Zahl zwischen 0 und 10 eingeben"); JOptionPane.showMessageDialog(null,"Ungültige Zahl. Bitte eine Zahl zwischen 0 und 10 eingeben");
} }
} }
else else
{ {
JOptionPane.showMessageDialog(null,"Du besitzt nicht die erforderliche Anzahl an Sternen! \n Verarschen kannst du jemand anderen."); JOptionPane.showMessageDialog(null,"Du besitzt nicht die erforderliche Anzahl an Sternen! \n Verarschen kannst du jemand anderen.");

Loading…
Cancel
Save