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/Button.java b/Button.java new file mode 100644 index 0000000..bc3b248 --- /dev/null +++ b/Button.java @@ -0,0 +1,19 @@ +import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) + +/** + * Write a description of class Menue_Button here. + * + * @author (your name) + * @version (a version number or a date) + */ +public class Button extends GUI_Interface +{ + /** + * Act - do whatever the Menue_Button 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. + } +} diff --git a/CurrentPlayerArrow.java b/CurrentPlayerArrow.java index 0c7f3b0..21a08bc 100644 --- a/CurrentPlayerArrow.java +++ b/CurrentPlayerArrow.java @@ -6,7 +6,7 @@ import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) * @author (your name) * @version (a version number or a date) */ -public class CurrentPlayerArrow extends Actor +public class CurrentPlayerArrow extends GUI_Interface { /** * Act - do whatever the CurrentPlayerArrow wants to do. This method is called whenever diff --git a/GUI_Ingame.java b/GUI_Ingame.java index b556f96..d3b9deb 100644 --- a/GUI_Ingame.java +++ b/GUI_Ingame.java @@ -15,9 +15,11 @@ public class GUI_Ingame extends World */ public GUI_Ingame() { - // Createcells with a cell size of 1x1 pixels. + // super(1920, 1080, 1); - //addObject(Menue_Button,100,100); + addObject(new Menue_Button(),100,38); + addObject(new Würfel_Button(),100,1000); + addObject(new Würfel_Button(),1814,1000); } diff --git a/GUI_Interface.java b/GUI_Interface.java new file mode 100644 index 0000000..60dc87a --- /dev/null +++ b/GUI_Interface.java @@ -0,0 +1,19 @@ +import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) + +/** + * Write a description of class GUI_Interface here. + * + * @author (your name) + * @version (a version number or a date) + */ +public class GUI_Interface extends Actor +{ + /** + * Act - do whatever the GUI_Interface 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. + } +} diff --git a/GUI_ZweiundVierzig.png b/GUI_ZweiundVierzig.png new file mode 100644 index 0000000..bd072cf Binary files /dev/null and b/GUI_ZweiundVierzig.png differ diff --git a/Menue_Button.java b/Menue_Button.java new file mode 100644 index 0000000..44805e3 --- /dev/null +++ b/Menue_Button.java @@ -0,0 +1,19 @@ +import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) + +/** + * Write a description of class Menue_Button here. + * + * @author (your name) + * @version (a version number or a date) + */ +public class Menue_Button extends Button +{ + /** + * Act - do whatever the Menue_Button wants to do. This method is called whenever + * the 'Act' or 'Run' button gets pressed in the environment. + */ + public void act() + { + setLocation(100,38);// Add your action code here. + } +} diff --git a/Menü-Button.png b/Menü-Button.png new file mode 100644 index 0000000..38a9bf6 Binary files /dev/null and b/Menü-Button.png differ diff --git a/Würfel_Button.java b/Würfel_Button.java new file mode 100644 index 0000000..bab0bc6 --- /dev/null +++ b/Würfel_Button.java @@ -0,0 +1,19 @@ +import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) + +/** + * Write a description of class Würfel_Button_Angriff here. + * + * @author (your name) + * @version (a version number or a date) + */ +public class Würfel_Button extends Button +{ + /** + * Act - do whatever the Würfel_Button_Angriff 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. + } +} diff --git a/Würfel_Button.png b/Würfel_Button.png new file mode 100644 index 0000000..dfd540e Binary files /dev/null and b/Würfel_Button.png differ