CurrentPlayerArrow entfernt

Ein Rest aus dem ersten Versuchen und Tests, diese Anzeige soll innerhalb der Welt direkt erzeugt werden.
master
Zocker1999NET 9 years ago
parent 6cb9130ddd
commit e543bf666a

@ -1,38 +0,0 @@
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class CurrentPlayerArrow here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class CurrentPlayerArrow extends GUI_Interface
{
/**
* Act - do whatever the CurrentPlayerArrow wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
// Add your action code here.
}
public void CurrentPlayerArrow(int currentPlayer, int playerNumber)
{
switch (currentPlayer) {
case 1 :
setLocation(120,100);
break;
case 2 :
setLocation(120,100 + (825 / playerNumber));
break;
case 3 :
setLocation(120,100 + (825 / playerNumber)*2);
break;
case 4 :
setLocation(120,100 + (825 / playerNumber)*3);
break;
}
}
}
Loading…
Cancel
Save