From 27db493e3c967c738e8f8754037dcbb112814aad Mon Sep 17 00:00:00 2001 From: SariusRu Date: Tue, 12 Apr 2016 12:23:52 +0200 Subject: [PATCH] =?UTF-8?q?Grundklasse=20W=C3=BCrfel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Die Grundklasse für die spätere Würfelfunktion --- Dice.java | 19 +++++++++++++++++++ Dice_Defender.java | 29 +++++++++++++++++++++++++++++ Dice_Offender.java | 19 +++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 Dice.java create mode 100644 Dice_Defender.java create mode 100644 Dice_Offender.java 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. + } +}