diff --git a/Arrow.png b/Arrow.png new file mode 100644 index 0000000..48c80e0 Binary files /dev/null and b/Arrow.png differ diff --git a/CurrentPlayerArrow.java b/CurrentPlayerArrow.java new file mode 100644 index 0000000..0c7f3b0 --- /dev/null +++ b/CurrentPlayerArrow.java @@ -0,0 +1,38 @@ +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 Actor +{ + /** + * 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; + + } + } +} diff --git a/GUI_Ingame.java b/GUI_Ingame.java new file mode 100644 index 0000000..cd3cdc5 --- /dev/null +++ b/GUI_Ingame.java @@ -0,0 +1,28 @@ +import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) + +/** + * Write a description of class GUI_Ingame here. + * + * @author (your name) + * @version (a version number or a date) + */ +public class GUI_Ingame extends World +{ + + /** + * Constructor for objects of class GUI_Ingame. + * + */ + public GUI_Ingame() + { + // Createcells with a cell size of 1x1 pixels. + super(1920, 1080, 1); + addObject(Menue_Button,100,100); + } + + + + + + +} diff --git a/GUI_ZweiundVierzig.png b/GUI_ZweiundVierzig.png new file mode 100644 index 0000000..e78fda7 Binary files /dev/null and b/GUI_ZweiundVierzig.png differ