diff --git a/Dice.java b/Dice.java new file mode 100644 index 0000000..08b5c8a --- /dev/null +++ b/Dice.java @@ -0,0 +1,19 @@ +import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) + +/** + * Write a description of class Dice here. + * + * @author (your name) + * @version (a version number or a date) + */ +public class Dice extends Actor +{ + /** + * Act - do whatever the Dice 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/Dice_Defender.java b/Dice_Defender.java new file mode 100644 index 0000000..67d0008 --- /dev/null +++ b/Dice_Defender.java @@ -0,0 +1,29 @@ +import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) + +/** + * Write a description of class Dice_Defender here. + * + * @author (your name) + * @version (a version number or a date) + */ +public class Dice_Defender extends Dice +{ + /** + * Act - do whatever the Dice_Defender 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. + } + /** + * @param Troups Anzahl der Truppen auf dem gewählten Feld + * //@param cheat optional: Die Kleinstmöglichste Anzahl des Würfels, standardmäßig 1 + * + */ + public int dice(int Troups) + { + int dice_eyes = 0; + return dice_eyes; + } +} diff --git a/Dice_Offender.java b/Dice_Offender.java new file mode 100644 index 0000000..1d92135 --- /dev/null +++ b/Dice_Offender.java @@ -0,0 +1,19 @@ +import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) + +/** + * Write a description of class Dice_Offender here. + * + * @author (your name) + * @version (a version number or a date) + */ +public class Dice_Offender extends Dice +{ + /** + * Act - do whatever the Dice_Offender 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. + } +}