Merge pull request #91 from HGE-IT-Course-2016/Beta3

Letzte Änderungen
Hoffentlich fehlerfrei
master
Felix Stupp 10 years ago committed by GitHub
commit a1f4e2bc76

@ -47,7 +47,7 @@ public class Player extends Actor
{ {
return stars; return stars;
} }
/** /**
* Gibt die Farbe des Spielers als int-Wert heraus. * Gibt die Farbe des Spielers als int-Wert heraus.
* Wahnsinn, dass du dir den Scheiß hier grad durchliest. * Wahnsinn, dass du dir den Scheiß hier grad durchliest.
@ -57,7 +57,7 @@ public class Player extends Actor
{ {
return color; return color;
} }
// Von Felix: Methode nicht architektur-konform // Von Felix: Methode nicht architektur-konform
/* // erhöht die Sternenzahl um eine random ausgewählte Anzahl von 1-3 /* // erhöht die Sternenzahl um eine random ausgewählte Anzahl von 1-3
@ -253,18 +253,7 @@ public class Player extends Actor
private void redrawArrow(GreenfootImage statistics,GreenfootImage flag, int textSize) private void redrawArrow(GreenfootImage statistics,GreenfootImage flag, int textSize)
{ {
// redraw(statistics,flag,textSize); // redraw(statistics,flag,textSize);
GreenfootImage Arrow = new GreenfootImage(137,120); redraw(statistics,flag,textSize);
if(id == 0 || id == 1|| id == 2)
{
Arrow.setColor(Color.GRAY);
Arrow.fill();
Arrow.drawImage(statistics,0,0);
redraw(Arrow,flag,textSize);
}
else
{
redraw(statistics,flag,textSize);
}
} }
private void redraw(GreenfootImage statistics,GreenfootImage flag, int textSize) private void redraw(GreenfootImage statistics,GreenfootImage flag, int textSize)

Loading…
Cancel
Save