Grundklasse Würfel

Die Grundklasse für die spätere Würfelfunktion
master
SariusRu 9 years ago
parent 015b7fe8ec
commit 27db493e3c

@ -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.
}
}

@ -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;
}
}

@ -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.
}
}
Loading…
Cancel
Save