Start_Load
parent
9552e556a5
commit
a5bb07445c
@ -0,0 +1,25 @@
|
||||
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
|
||||
|
||||
/**
|
||||
* Startet neues Spiel.
|
||||
*
|
||||
* @author 4ngelica
|
||||
* @version 1.0
|
||||
*/
|
||||
public class Start_Button extends Button
|
||||
{
|
||||
private int textSize = 32;
|
||||
private String text = "New Game";
|
||||
|
||||
/**
|
||||
* Erstellt neue Klasse Colors.
|
||||
*/
|
||||
public void act()
|
||||
{
|
||||
setLocation(100,100);
|
||||
if (Greenfoot.mouseClicked(this))
|
||||
{
|
||||
Greenfoot.setWorld(new Colors());
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
@ -0,0 +1,9 @@
|
||||
#BlueJ class context
|
||||
comment0.target=Start_Load
|
||||
comment0.text=\r\n\ Beginnt\ neues\ Spiel/\ l\u00E4dt\ altes\ Spiel.\r\n\ \r\n\ @author\ 4ngelica\ \r\n\ @version\ 1.0\r\n
|
||||
comment1.params=
|
||||
comment1.target=Start_Load()
|
||||
comment1.text=\r\n\ Constructor\ for\ objects\ of\ class\ Start_Load.\r\n\ \r\n
|
||||
comment2.params=text\ size
|
||||
comment2.target=void\ Button(java.lang.String,\ int)
|
||||
numComments=3
|
@ -0,0 +1,33 @@
|
||||
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
|
||||
|
||||
/**
|
||||
* Beginnt neues Spiel/ lädt altes Spiel.
|
||||
*
|
||||
* @author 4ngelica
|
||||
* @version 1.0
|
||||
*/
|
||||
public class Start_Load extends World
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor for objects of class Start_Load.
|
||||
*
|
||||
*/
|
||||
public Start_Load()
|
||||
{
|
||||
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
|
||||
super(600, 400, 1);
|
||||
|
||||
}
|
||||
|
||||
public void NewGame()
|
||||
{
|
||||
addObject (new Start_Button());
|
||||
}
|
||||
|
||||
public void Load()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,147 +1,264 @@
|
||||
#Greenfoot properties
|
||||
#Sun May 29 22:05:35 CEST 2016
|
||||
editor.fx.0.height=700
|
||||
target2.width=100
|
||||
target8.name=Map_World
|
||||
target11.y=190
|
||||
target11.x=10
|
||||
class.GUI_Interface.superclass=greenfoot.Actor
|
||||
target1.type=ClassTarget
|
||||
target7.showInterface=false
|
||||
mainWindow.height=600
|
||||
target6.typeParameters=
|
||||
target1.height=50
|
||||
class.Dice_Offender.superclass=Dice
|
||||
target8.y=70
|
||||
target8.x=170
|
||||
dependency2.type=UsesDependency
|
||||
target5.type=ClassTarget
|
||||
target6.y=10
|
||||
target6.x=120
|
||||
target1.showInterface=false
|
||||
target4.y=310
|
||||
target4.x=10
|
||||
target4.showInterface=false
|
||||
target9.type=ClassTarget
|
||||
target2.y=250
|
||||
target2.x=10
|
||||
target10.type=ClassTarget
|
||||
target8.height=50
|
||||
target11.height=50
|
||||
target10.typeParameters=
|
||||
dependency4.from=Map_World
|
||||
class.Weltenauswahl.superclass=Spieloptionen
|
||||
target1.name=Dice
|
||||
target10.showInterface=false
|
||||
class.Map_World.superclass=GeneralMap
|
||||
target4.typeParameters=
|
||||
target5.name=Province
|
||||
world.lastInstantiated=Map_World
|
||||
class.Dice.superclass=greenfoot.Actor
|
||||
mainWindow.width=800
|
||||
readme.width=47
|
||||
#Greenfoot project file
|
||||
class.ArmySchubser.superclass=Map_World
|
||||
class.Button.superclass=GUI_Interface
|
||||
class.ButtonEvent.superclass=
|
||||
class.CurrentPlayerArrow.superclass=GUI_Interface
|
||||
class.DefenderDices.superclass=DicesList
|
||||
class.Dice.superclass=GUI_Interface
|
||||
class.Dice_Defender.superclass=Dice
|
||||
class.Dice_Offender.superclass=Dice
|
||||
class.DicesList.superclass=greenfoot.Actor
|
||||
class.GUI_Interface.superclass=greenfoot.Actor
|
||||
class.GeneralMap.superclass=greenfoot.World
|
||||
class.CurrentPlayerArrow.superclass=GUI_Interface
|
||||
target9.name=Button
|
||||
target5.height=50
|
||||
target10.name=Dice_Offender
|
||||
target2.type=ClassTarget
|
||||
class.Label.superclass=GUI_Interface
|
||||
class.Map_World.superclass=GeneralMap
|
||||
class.Menue_Button.superclass=Button
|
||||
class.OffenderDices.superclass=DicesList
|
||||
class.Player.superclass=greenfoot.Actor
|
||||
class.Province.superclass=greenfoot.Actor
|
||||
class.Roll_Button.superclass=Button
|
||||
class.Spieleranzahl.superclass=Spieloptionen
|
||||
class.Spieloptionen.superclass=greenfoot.World
|
||||
class.Start_Button.superclass=Button
|
||||
class.Start_Load.superclass=greenfoot.World
|
||||
class.Utils.superclass=
|
||||
class.Weltenauswahl.superclass=Spieloptionen
|
||||
dependency1.from=Province
|
||||
dependency1.to=Utils
|
||||
dependency1.type=UsesDependency
|
||||
dependency10.from=Province
|
||||
dependency10.to=GeneralMap
|
||||
dependency10.type=UsesDependency
|
||||
dependency11.from=GeneralMap
|
||||
dependency11.to=Player
|
||||
dependency11.type=UsesDependency
|
||||
dependency12.from=Button
|
||||
dependency12.to=ButtonEvent
|
||||
dependency12.type=UsesDependency
|
||||
dependency13.from=Button
|
||||
dependency13.to=Utils
|
||||
dependency13.type=UsesDependency
|
||||
dependency14.from=ButtonEvent
|
||||
dependency14.to=Button
|
||||
dependency14.type=UsesDependency
|
||||
dependency15.from=Roll_Button
|
||||
dependency15.to=ButtonEvent
|
||||
dependency15.type=UsesDependency
|
||||
dependency16.from=Start_Load
|
||||
dependency16.to=Button
|
||||
dependency16.type=UsesDependency
|
||||
dependency17.from=Start_Load
|
||||
dependency17.to=ButtonEvent
|
||||
dependency17.type=UsesDependency
|
||||
dependency18.from=Start_Button
|
||||
dependency18.to=ButtonEvent
|
||||
dependency18.type=UsesDependency
|
||||
dependency19.from=Start_Load
|
||||
dependency19.to=Start_Button
|
||||
dependency19.type=UsesDependency
|
||||
dependency2.from=GeneralMap
|
||||
dependency2.to=Menue_Button
|
||||
dependency2.type=UsesDependency
|
||||
dependency3.from=GeneralMap
|
||||
dependency3.to=Roll_Button
|
||||
dependency3.type=UsesDependency
|
||||
target2.height=50
|
||||
target2.typeParameters=
|
||||
target6.type=ClassTarget
|
||||
editor.swing.0.height=700
|
||||
class.Spieloptionen.superclass=greenfoot.World
|
||||
target9.typeParameters=
|
||||
target11.type=ClassTarget
|
||||
version=2.8.0
|
||||
editor.fx.0.y=0
|
||||
dependency4.from=Map_World
|
||||
dependency4.to=Province
|
||||
dependency4.type=UsesDependency
|
||||
dependency5.from=Player
|
||||
dependency5.to=GeneralMap
|
||||
dependency5.type=UsesDependency
|
||||
dependency6.from=Menue_Button
|
||||
dependency6.to=ButtonEvent
|
||||
dependency6.type=UsesDependency
|
||||
dependency7.from=ArmySchubser
|
||||
dependency7.to=Province
|
||||
dependency7.type=UsesDependency
|
||||
dependency8.from=DicesList
|
||||
dependency8.to=Dice
|
||||
dependency8.type=UsesDependency
|
||||
dependency9.from=DicesList
|
||||
dependency9.to=Utils
|
||||
dependency9.type=UsesDependency
|
||||
editor.fx.0.height=700
|
||||
editor.fx.0.width=700
|
||||
editor.fx.0.x=0
|
||||
target2.showInterface=false
|
||||
dependency1.from=Province
|
||||
mainWindow.y=10
|
||||
editor.swing.0.y=0
|
||||
mainWindow.x=10
|
||||
editor.fx.0.y=0
|
||||
editor.swing.0.height=700
|
||||
editor.swing.0.width=700
|
||||
editor.swing.0.x=78
|
||||
target5.showInterface=false
|
||||
target8.showInterface=false
|
||||
target7.typeParameters=
|
||||
target2.name=GUI_Interface
|
||||
editor.swing.0.y=0
|
||||
mainWindow.height=744
|
||||
mainWindow.width=1382
|
||||
mainWindow.x=-8
|
||||
mainWindow.y=-8
|
||||
package.numDependencies=19
|
||||
package.numTargets=20
|
||||
project.charset=UTF-8
|
||||
readme.height=58
|
||||
readme.name=@README
|
||||
class.Menue_Button.superclass=Button
|
||||
editor.swing.0.width=701
|
||||
target6.name=CurrentPlayerArrow
|
||||
target9.height=50
|
||||
target12.y=190
|
||||
target12.x=190
|
||||
editor.fx.0.width=700
|
||||
readme.width=47
|
||||
readme.x=10
|
||||
readme.y=10
|
||||
target1.height=50
|
||||
target1.name=Player
|
||||
target1.showInterface=false
|
||||
target1.type=ClassTarget
|
||||
target1.typeParameters=
|
||||
target1.width=80
|
||||
target1.x=120
|
||||
target1.y=10
|
||||
target10.height=50
|
||||
target10.name=Dice_Defender
|
||||
target10.showInterface=false
|
||||
target10.type=ClassTarget
|
||||
target10.typeParameters=
|
||||
target10.width=110
|
||||
target10.x=10
|
||||
target10.y=310
|
||||
target11.height=50
|
||||
target11.name=DefenderDices
|
||||
target11.showInterface=false
|
||||
target10.y=130
|
||||
target10.x=100
|
||||
dependency2.to=Menue_Button
|
||||
target12.width=90
|
||||
target11.name=Utils
|
||||
target12.height=50
|
||||
class.Province.superclass=greenfoot.Actor
|
||||
target9.y=130
|
||||
target9.x=10
|
||||
target3.type=ClassTarget
|
||||
target6.height=50
|
||||
target7.y=70
|
||||
target7.x=70
|
||||
target11.type=ClassTarget
|
||||
target11.typeParameters=
|
||||
target5.y=310
|
||||
target5.x=130
|
||||
dependency4.type=UsesDependency
|
||||
target7.type=ClassTarget
|
||||
target10.width=110
|
||||
target3.y=250
|
||||
target3.x=120
|
||||
target11.width=80
|
||||
target3.height=50
|
||||
target1.y=190
|
||||
target1.x=100
|
||||
target11.width=110
|
||||
target11.x=10
|
||||
target11.y=490
|
||||
target12.height=50
|
||||
target12.name=Province
|
||||
target12.showInterface=false
|
||||
target12.type=ClassTarget
|
||||
target5.typeParameters=
|
||||
dependency2.from=GeneralMap
|
||||
project.charset=UTF-8
|
||||
target12.typeParameters=
|
||||
target12.width=80
|
||||
target12.x=130
|
||||
target12.y=310
|
||||
target13.height=50
|
||||
target13.name=GeneralMap
|
||||
target13.showInterface=false
|
||||
target13.type=AbstractTarget
|
||||
target13.typeParameters=
|
||||
target13.width=90
|
||||
target13.x=70
|
||||
target13.y=70
|
||||
target14.height=50
|
||||
target14.name=Map_World
|
||||
target14.showInterface=false
|
||||
target14.type=ClassTarget
|
||||
target14.typeParameters=
|
||||
target14.width=90
|
||||
target14.x=170
|
||||
target14.y=70
|
||||
target15.height=50
|
||||
target15.name=Button
|
||||
target15.showInterface=false
|
||||
target15.type=ClassTarget
|
||||
target15.typeParameters=
|
||||
target15.width=80
|
||||
target15.x=10
|
||||
target15.y=130
|
||||
target16.height=50
|
||||
target16.name=ButtonEvent
|
||||
target16.showInterface=false
|
||||
target16.type=InterfaceTarget
|
||||
target16.typeParameters=
|
||||
target16.width=90
|
||||
target16.x=130
|
||||
target16.y=490
|
||||
target17.height=50
|
||||
target17.name=Dice_Offender
|
||||
target17.showInterface=false
|
||||
target17.type=ClassTarget
|
||||
target17.typeParameters=
|
||||
target17.width=110
|
||||
target17.x=100
|
||||
target17.y=130
|
||||
target18.height=50
|
||||
target18.name=Utils
|
||||
target18.showInterface=false
|
||||
target18.type=ClassTarget
|
||||
target18.typeParameters=
|
||||
target18.width=80
|
||||
target18.x=10
|
||||
target18.y=190
|
||||
target19.height=50
|
||||
target19.name=Start_Load
|
||||
target19.showInterface=false
|
||||
target19.type=ClassTarget
|
||||
target19.typeParameters=
|
||||
target19.width=90
|
||||
target19.x=10
|
||||
target19.y=550
|
||||
target2.height=50
|
||||
target2.name=Dice
|
||||
target2.showInterface=false
|
||||
target2.type=ClassTarget
|
||||
target2.typeParameters=
|
||||
target2.width=80
|
||||
target2.x=100
|
||||
target2.y=190
|
||||
target20.height=50
|
||||
target20.name=Roll_Button
|
||||
target20.showInterface=false
|
||||
target20.type=ClassTarget
|
||||
target20.typeParameters=
|
||||
target20.width=90
|
||||
target20.x=190
|
||||
target20.y=190
|
||||
target3.height=50
|
||||
target3.name=GUI_Interface
|
||||
target3.showInterface=false
|
||||
class.Spieleranzahl.superclass=Spieloptionen
|
||||
target3.name=Menue_Button
|
||||
target6.showInterface=false
|
||||
target3.type=AbstractTarget
|
||||
target3.typeParameters=
|
||||
target9.showInterface=false
|
||||
dependency3.to=Roll_Button
|
||||
target7.name=GeneralMap
|
||||
package.numDependencies=4
|
||||
package.numTargets=12
|
||||
target12.name=Roll_Button
|
||||
dependency1.type=UsesDependency
|
||||
target3.width=100
|
||||
target3.x=10
|
||||
target3.y=250
|
||||
target4.height=50
|
||||
target4.name=Menue_Button
|
||||
target4.showInterface=false
|
||||
target4.type=ClassTarget
|
||||
target12.showInterface=false
|
||||
target8.width=90
|
||||
target9.width=80
|
||||
target4.typeParameters=
|
||||
target4.width=110
|
||||
target4.x=120
|
||||
target4.y=250
|
||||
target5.height=50
|
||||
target5.name=Label
|
||||
target5.showInterface=false
|
||||
target5.type=ClassTarget
|
||||
target5.typeParameters=
|
||||
target5.width=80
|
||||
target5.x=10
|
||||
target5.y=370
|
||||
target6.height=50
|
||||
target6.name=ArmySchubser
|
||||
target6.showInterface=false
|
||||
target6.type=ClassTarget
|
||||
target6.typeParameters=
|
||||
target6.width=110
|
||||
target6.x=100
|
||||
target6.y=370
|
||||
target7.height=50
|
||||
target7.name=DicesList
|
||||
target7.showInterface=false
|
||||
target7.type=AbstractTarget
|
||||
target7.typeParameters=
|
||||
target7.width=80
|
||||
target7.x=10
|
||||
target7.y=430
|
||||
target8.height=50
|
||||
target8.name=OffenderDices
|
||||
target8.showInterface=false
|
||||
target8.type=ClassTarget
|
||||
class.Button.superclass=GUI_Interface
|
||||
target6.width=140
|
||||
target10.height=50
|
||||
target7.width=90
|
||||
class.Roll_Button.superclass=Button
|
||||
dependency3.from=GeneralMap
|
||||
target1.typeParameters=
|
||||
target3.width=110
|
||||
target4.width=110
|
||||
target8.typeParameters=
|
||||
target5.width=80
|
||||
dependency4.to=Province
|
||||
class.Utils.superclass=
|
||||
target4.name=Dice_Defender
|
||||
readme.y=10
|
||||
readme.x=10
|
||||
target4.height=50
|
||||
readme.height=58
|
||||
target12.typeParameters=
|
||||
target1.width=80
|
||||
target8.width=110
|
||||
target8.x=100
|
||||
target8.y=430
|
||||
target9.height=50
|
||||
target9.name=Start_Button
|
||||
target9.showInterface=false
|
||||
target9.type=ClassTarget
|
||||
target9.typeParameters=
|
||||
target9.width=100
|
||||
target9.x=110
|
||||
target9.y=550
|
||||
version=2.8.0
|
||||
world.lastInstantiated=Map_World
|
||||
|
Loading…
Reference in New Issue