commit
f34a62c509
@ -0,0 +1,11 @@
|
||||
// Place your settings in this file to overwrite default and user settings.
|
||||
{
|
||||
"files.exclude": {
|
||||
"**/.git": true,
|
||||
"**/.DS_Store": true,
|
||||
"*.class": true,
|
||||
"*.ctxt": true,
|
||||
"project.greenfoot": true,
|
||||
"**/.vscode": true
|
||||
}
|
||||
}
|
@ -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.
|
||||
}
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -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.
|
||||
}
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 16 KiB |
@ -1,32 +1,35 @@
|
||||
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
|
||||
|
||||
/**
|
||||
* Oberklasse für verschiedene Maps;
|
||||
* neue Maps werden als Unterklasse dieser Klasse eingefügt.
|
||||
*
|
||||
* @author GruenerWal
|
||||
* @version 0.0.1
|
||||
*/
|
||||
public class Map extends World
|
||||
{
|
||||
/**
|
||||
* Felder, im Moment nur Anzahl der Provinzen
|
||||
* Später evtl. weitere Werte wie Schwierigkeit denkbar
|
||||
*/
|
||||
|
||||
protected int provinzen;
|
||||
|
||||
/** Konstruktor für nicht weiter definierte Map, sollte im Moment nicht benutzt werden.
|
||||
* Später als Konstruktor für Default-Map denkbar.
|
||||
*/
|
||||
public Map(int x, int y, int p)
|
||||
{
|
||||
/**
|
||||
* Erstellt eine leere Karte mit den übergebenen Eigenschaften
|
||||
* @param x X-Ausdehnung der Welt
|
||||
* @param y Y-Ausdehnung
|
||||
* @param p Kantenlänge der Felder in Pixeln
|
||||
*/
|
||||
super(x, y, p);
|
||||
}
|
||||
}
|
||||
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
|
||||
|
||||
/**
|
||||
* Oberklasse für verschiedene Maps;
|
||||
* neue Maps werden als Unterklasse dieser Klasse eingefügt.
|
||||
*
|
||||
* @author GruenerWal
|
||||
* @version 0.0.1
|
||||
*/
|
||||
public class GeneralMap extends World
|
||||
{
|
||||
/**
|
||||
* Felder, im Moment nur Anzahl der Provinzen
|
||||
* Später evtl. weitere Werte wie Schwierigkeit denkbar
|
||||
*/
|
||||
|
||||
protected int provinzen;
|
||||
|
||||
/** Konstruktor für nicht weiter definierte Map, sollte im Moment nicht benutzt werden.
|
||||
* Später als Konstruktor für Default-Map denkbar.
|
||||
*/
|
||||
public GeneralMap(int x, int y, int p)
|
||||
{
|
||||
/**
|
||||
* Erstellt eine leere Karte mit den übergebenen Eigenschaften
|
||||
* @param x X-Ausdehnung der Welt
|
||||
* @param y Y-Ausdehnung
|
||||
* @param p Kantenlänge der Felder in Pixeln
|
||||
*/
|
||||
super(1920, 1080, 1);
|
||||
addObject(new Menue_Button(),100,38);
|
||||
addObject(new Würfel_Button(),100,1000);
|
||||
addObject(new Würfel_Button(),1814,1000);
|
||||
}
|
||||
}
|
@ -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.
|
||||
}
|
||||
}
|
@ -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 Roll_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.
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
@ -0,0 +1,8 @@
|
||||
#Greenfoot project file
|
||||
mainWindow.height=600
|
||||
mainWindow.width=800
|
||||
mainWindow.x=10
|
||||
mainWindow.y=10
|
||||
project.charset=UTF-8
|
||||
version=2.8.0
|
||||
world.lastInstantiated=GUI_Ingame
|
Loading…
Reference in New Issue