Added files via upload

pull/7/head
SariusRu 8 years ago
parent 7f146f21f4
commit 15aac2e27a

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

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

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

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

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

After

Width:  |  Height:  |  Size: 19 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Loading…
Cancel
Save