@ -69,9 +69,9 @@ public abstract class GeneralMap extends World implements ButtonEvent
createPlayerObjects ( playerList . length ) ;
createPlayerObjects ( playerList . length ) ;
}
}
public int currentPlayer ( )
public void currentPlayer ( )
{
{
return currentPlayer ;
}
}
public void redrawGameStates ( )
public void redrawGameStates ( )
@ -83,7 +83,7 @@ public abstract class GeneralMap extends World implements ButtonEvent
if ( status = = GameStates . KAMPF )
if ( status = = GameStates . KAMPF )
{
{
GreenfootImage GameStatesEmpty = new GreenfootImage ( 750 , textSize ) ;
GreenfootImage GameStatesEmpty = new GreenfootImage ( 750 , textSize ) ;
GreenfootImage GameStates = new GreenfootImage ( "KAMPF!!! Wähle die Provinz aus, die du angreifen möchtest !" , textSize , new Color ( 255 , 255 , 255 ) , new Color ( 0 , 0 , 0 ) ) ;
GreenfootImage GameStates = new GreenfootImage ( "KAMPF!!! Wähle die Provinz aus, die du angreifen möchtest , Spieler " + currentPlayer , textSize , new Color ( 255 , 255 , 255 ) , new Color ( 0 , 0 , 0 ) ) ;
GameStatesEmpty . drawImage ( GameStates , 0 , 0 ) ;
GameStatesEmpty . drawImage ( GameStates , 0 , 0 ) ;
GreenfootImage States = new GreenfootImage ( "MapWorldFight.png" ) ;
GreenfootImage States = new GreenfootImage ( "MapWorldFight.png" ) ;
States . drawImage ( GameStatesEmpty , X , Y ) ;
States . drawImage ( GameStatesEmpty , X , Y ) ;
@ -92,7 +92,7 @@ public abstract class GeneralMap extends World implements ButtonEvent
if ( status = = GameStates . VERSCHIEBEN )
if ( status = = GameStates . VERSCHIEBEN )
{
{
GreenfootImage GameStatesEmpty = new GreenfootImage ( 500 , textSize ) ;
GreenfootImage GameStatesEmpty = new GreenfootImage ( 500 , textSize ) ;
GreenfootImage GameStates = new GreenfootImage ( "VERSCHIEBEN! Wähle die Provinz aus !" , textSize , new Color ( 255 , 255 , 255 ) , new Color ( 0 , 0 , 0 ) ) ;
GreenfootImage GameStates = new GreenfootImage ( "VERSCHIEBEN! Wähle die Provinz aus , Spieler " + currentPlayer , textSize , new Color ( 255 , 255 , 255 ) , new Color ( 0 , 0 , 0 ) ) ;
GameStatesEmpty . drawImage ( GameStates , 0 , 0 ) ;
GameStatesEmpty . drawImage ( GameStates , 0 , 0 ) ;
GreenfootImage States = new GreenfootImage ( "MapWorldMove.png" ) ;
GreenfootImage States = new GreenfootImage ( "MapWorldMove.png" ) ;
States . drawImage ( GameStatesEmpty , X , Y ) ;
States . drawImage ( GameStatesEmpty , X , Y ) ;
@ -101,7 +101,7 @@ public abstract class GeneralMap extends World implements ButtonEvent
if ( status = = GameStates . SETZEN )
if ( status = = GameStates . SETZEN )
{
{
GreenfootImage GameStatesEmpty = new GreenfootImage ( 500 , textSize ) ;
GreenfootImage GameStatesEmpty = new GreenfootImage ( 500 , textSize ) ;
GreenfootImage GameStates = new GreenfootImage ( "Setzten! Wähle die Provinz aus !" , textSize , new Color ( 255 , 255 , 255 ) , new Color ( 0 , 0 , 0 ) ) ;
GreenfootImage GameStates = new GreenfootImage ( "Setzten! Wähle die Provinz aus , Spieler " + currentPlayer , textSize , new Color ( 255 , 255 , 255 ) , new Color ( 0 , 0 , 0 ) ) ;
GameStatesEmpty . drawImage ( GameStates , 0 , 0 ) ;
GameStatesEmpty . drawImage ( GameStates , 0 , 0 ) ;
GreenfootImage States = new GreenfootImage ( "MapWorld.png" ) ;
GreenfootImage States = new GreenfootImage ( "MapWorld.png" ) ;
States . drawImage ( GameStatesEmpty , X , Y ) ;
States . drawImage ( GameStatesEmpty , X , Y ) ;