A B C D F G I K L M N O P Q R S T U W X Y

A

AbstractPuppet - Class in de.unifreiburg.twodeedoo.scene
Implementation base for IPuppets.
AbstractPuppet(int, int) - Constructor for class de.unifreiburg.twodeedoo.scene.AbstractPuppet
Initialize coordinates.
addActor(IActor) - Method in class de.unifreiburg.twodeedoo.model.CompositeActor
Add an actor, becoming its container.
addActor(IActor) - Method in interface de.unifreiburg.twodeedoo.model.ICompositeActor
Add an actor
addGameControlListener(IGameControlListener) - Method in class de.unifreiburg.twodeedoo.view.SceneView
 
addImagePart(IBrush) - Method in class de.unifreiburg.twodeedoo.scene.MultiImagePartPuppet
Add a IBrush.
addPuppet(IPuppet) - Method in interface de.unifreiburg.twodeedoo.scene.IScene
add a IPuppet so that will paint above all others.
addPuppet(IPuppet) - Method in class de.unifreiburg.twodeedoo.scene.SimpleScene
Append another IPuppet.
AwtCanvas - Class in de.unifreiburg.twodeedoo.world
Implementation of ICanvas using AWT Graphics.
AwtCanvas(Graphics) - Constructor for class de.unifreiburg.twodeedoo.world.AwtCanvas
 

B

BaseActor - Class in de.unifreiburg.twodeedoo.model
Default base class for IActor implementations
BaseActor(IScene) - Constructor for class de.unifreiburg.twodeedoo.model.BaseActor
 

C

CompositeActor - Class in de.unifreiburg.twodeedoo.model
Simple Composite of IActors.
CompositeActor(IScene) - Constructor for class de.unifreiburg.twodeedoo.model.CompositeActor
Create instance
container - Variable in class de.unifreiburg.twodeedoo.model.BaseActor
The containing actor group, or null.
containingScene - Variable in class de.unifreiburg.twodeedoo.scene.AbstractPuppet
The containing scene.

D

de.unifreiburg.twodeedoo.model - package de.unifreiburg.twodeedoo.model
Game model (actors)
de.unifreiburg.twodeedoo.scene - package de.unifreiburg.twodeedoo.scene
Scene management (Scene, Puppets)
de.unifreiburg.twodeedoo.test - package de.unifreiburg.twodeedoo.test
General test helpers.
de.unifreiburg.twodeedoo.view - package de.unifreiburg.twodeedoo.view
Swing component to display scenes, schedule activities and dispatch keys.
de.unifreiburg.twodeedoo.world - package de.unifreiburg.twodeedoo.world
A world simulator (like DrScheme's world teachpack) for twodeedoo.
drawFilledCircle(int, int, int, Color) - Method in class de.unifreiburg.twodeedoo.world.AwtCanvas
 
drawFilledCircle(int, int, int, Color) - Method in interface de.unifreiburg.twodeedoo.world.ICanvas
Draw a filled circle.
drawFilledRect(int, int, int, int, Color) - Method in class de.unifreiburg.twodeedoo.world.AwtCanvas
 
drawFilledRect(int, int, int, int, Color) - Method in interface de.unifreiburg.twodeedoo.world.ICanvas
Draw a filled rectangle.
drawLine(int, int, int, int, Color) - Method in class de.unifreiburg.twodeedoo.world.AwtCanvas
 
drawLine(int, int, int, int, Color) - Method in interface de.unifreiburg.twodeedoo.world.ICanvas
Draw a line.
drawText(int, int, String, Color) - Method in class de.unifreiburg.twodeedoo.world.AwtCanvas
 
drawText(int, int, String, Color) - Method in interface de.unifreiburg.twodeedoo.world.ICanvas
Draw text in the standard font.

F

feedInputEvents() - Method in class de.unifreiburg.twodeedoo.view.SceneView
 

G

GameControlAdapter - Class in de.unifreiburg.twodeedoo.view
Default implementation of IGameControlListener which ignores all events.
GameControlAdapter() - Constructor for class de.unifreiburg.twodeedoo.view.GameControlAdapter
 
getAwtGraphics() - Method in class de.unifreiburg.twodeedoo.world.AwtCanvas
 
getAwtGraphics() - Method in interface de.unifreiburg.twodeedoo.world.ICanvas
Return the inner Graphics; you can use it to draw complicated shapes beyond what this interface offers.
getContainer() - Method in class de.unifreiburg.twodeedoo.model.BaseActor
Get the container
getCycleTimeMs() - Method in interface de.unifreiburg.twodeedoo.world.IWorld
Desired cycle time of the simulation, i.e.
getHeight() - Method in class de.unifreiburg.twodeedoo.view.SceneView
 
getHeight() - Method in interface de.unifreiburg.twodeedoo.world.IWorld
Desired height in pixels of the inside of the simulation window (call during setup).
getNumberOfPhases() - Method in interface de.unifreiburg.twodeedoo.scene.IPhasedPuppet
How many phases?
getNumberOfPhases() - Method in class de.unifreiburg.twodeedoo.scene.MultiImagePartPuppet
How many phases.
getPreferredSize() - Method in class de.unifreiburg.twodeedoo.view.SceneView
How big do we want the window to be?
getPuppet() - Method in class de.unifreiburg.twodeedoo.model.LinearMotionActor
 
getScene() - Method in class de.unifreiburg.twodeedoo.model.BaseActor
Get the scene.
getScene() - Method in class de.unifreiburg.twodeedoo.model.CompositeActor
Getter for scene.
getTitle() - Method in interface de.unifreiburg.twodeedoo.world.IWorld
Title of the game.
getVelocityX() - Method in class de.unifreiburg.twodeedoo.model.LinearMotionActor
 
getVelocityY() - Method in class de.unifreiburg.twodeedoo.model.LinearMotionActor
 
getWidth() - Method in class de.unifreiburg.twodeedoo.view.SceneView
 
getWidth() - Method in interface de.unifreiburg.twodeedoo.world.IWorld
Desired width in pixels of the inside of the simulation window (call during setup).
getX() - Method in class de.unifreiburg.twodeedoo.scene.AbstractPuppet
 
getX() - Method in interface de.unifreiburg.twodeedoo.scene.IPuppet
X coordinate
getY() - Method in class de.unifreiburg.twodeedoo.scene.AbstractPuppet
 
getY() - Method in interface de.unifreiburg.twodeedoo.scene.IPuppet
Y coordinate

I

IActivity - Interface in de.unifreiburg.twodeedoo.view
I'm a toplevel schedulable.
IActor - Interface in de.unifreiburg.twodeedoo.model
I simulate some well-defined part of the world.
IBrush - Interface in de.unifreiburg.twodeedoo.view
I can paint myself to some location of your choice on a Graphics.
ICanvas - Interface in de.unifreiburg.twodeedoo.world
Simple drawing surface, wraps an AWT Graphics.
ICompositeActor - Interface in de.unifreiburg.twodeedoo.model
A composite actor contains actors and runs them.
IGameController - Interface in de.unifreiburg.twodeedoo.view
Control the execution of the game from within an Activity: switch to other activity, quit, restart.
IGameControlListener - Interface in de.unifreiburg.twodeedoo.view
Someone who wants to know that a game in a SceneView has requested the game to quit or to restart.
IKeyHandler - Interface in de.unifreiburg.twodeedoo.view
Handler of keyboard events, but mostly independent from AWT.
ImagePart - Class in de.unifreiburg.twodeedoo.view
A rectangular part of a BufferedImage.
ImagePart(BufferedImage, int, int, int, int) - Constructor for class de.unifreiburg.twodeedoo.view.ImagePart
Create from image and some coordinates inside it.
ImagePart(BufferedImage) - Constructor for class de.unifreiburg.twodeedoo.view.ImagePart
Take the whole image.
init() - Method in class de.unifreiburg.twodeedoo.world.WorldApplication
All one-time initializations, all begin-of-game initializations
initKey() - Method in class de.unifreiburg.twodeedoo.view.SceneView
Prepare for keyboard input.
initTimer() - Method in class de.unifreiburg.twodeedoo.view.SceneView
Start the timer for regular model updates.
InputEvent - Class in de.unifreiburg.twodeedoo.view
An input event which SceneView can queue.
IPainter - Interface in de.unifreiburg.twodeedoo.view
I can paint something onto a Graphics when I'm told to.
IPhasedPuppet - Interface in de.unifreiburg.twodeedoo.scene
a IPuppet which can change its appearance to one of many (1..) phases selected by index (at least 0 but less than getNumberOfPhases)
IPuppet - Interface in de.unifreiburg.twodeedoo.scene
I'm an IPainter which can be moved around.
isActivitySwitched() - Method in interface de.unifreiburg.twodeedoo.view.IGameController
Has IGameController.switchToActivity(IActivity) been called since the start of this event distribution cycle?
isActivitySwitched() - Method in class de.unifreiburg.twodeedoo.view.SceneView
 
IScene - Interface in de.unifreiburg.twodeedoo.scene
I contain a collection of puppets and manage their painting.
ISchedulable - Interface in de.unifreiburg.twodeedoo.view
I want to run from time to time.
ISimulationController - Interface in de.unifreiburg.twodeedoo.world
A IWorld's way of interacting with the simulator.
ITextPuppet - Interface in de.unifreiburg.twodeedoo.scene
I display text on a scene.
IWorld - Interface in de.unifreiburg.twodeedoo.world
A world contains state which updates over time and on keypress, and it displays its state on a canvas.

K

keyPressed(int, IGameController) - Method in class de.unifreiburg.twodeedoo.model.BaseActor
Default action: ignore all keys
keyPressed(int, IGameController) - Method in class de.unifreiburg.twodeedoo.model.CompositeActor
Dispatch to the actor which likes that key
keyPressed(int, IGameController) - Method in interface de.unifreiburg.twodeedoo.view.IKeyHandler
a key has been pressed.
keyPressed(int, IGameController) - Method in class de.unifreiburg.twodeedoo.view.NullActivity
 
keyPressed(int, IGameController) - Method in class de.unifreiburg.twodeedoo.world.WorldAdapter
 
keyReleased(int, IGameController) - Method in class de.unifreiburg.twodeedoo.model.BaseActor
Default action: ignore all keys
keyReleased(int, IGameController) - Method in class de.unifreiburg.twodeedoo.model.CompositeActor
Dispatch to the actor which likes that key
keyReleased(int, IGameController) - Method in interface de.unifreiburg.twodeedoo.view.IKeyHandler
a key has been released.
keyReleased(int, IGameController) - Method in class de.unifreiburg.twodeedoo.view.NullActivity
 
keyReleased(int, IGameController) - Method in class de.unifreiburg.twodeedoo.world.WorldAdapter
 

L

LinearMotionActor - Class in de.unifreiburg.twodeedoo.model
I move my IPuppet along a linear path.
LinearMotionActor(IScene, IPuppet, int, int, double, double) - Constructor for class de.unifreiburg.twodeedoo.model.LinearMotionActor
Create a new actor.

M

minimalTimeSlice() - Method in class de.unifreiburg.twodeedoo.model.CompositeActor
 
minimalTimeSlice() - Method in interface de.unifreiburg.twodeedoo.view.IActivity
Do not call me more often than with this many ms between two runs.
minimalTimeSlice() - Method in class de.unifreiburg.twodeedoo.view.NullActivity
 
minimalTimeSlice() - Method in class de.unifreiburg.twodeedoo.world.WorldAdapter
 
moveAbs(int, int) - Method in class de.unifreiburg.twodeedoo.scene.AbstractPuppet
Move to a position on scene.
moveAbs(int, int) - Method in interface de.unifreiburg.twodeedoo.scene.IPuppet
Move the reference point to new coordinates.
MultiImagePartPuppet - Class in de.unifreiburg.twodeedoo.scene
IPhasedPuppet implementation which paints one of a collection of IBrushes.
MultiImagePartPuppet(IBrush) - Constructor for class de.unifreiburg.twodeedoo.scene.MultiImagePartPuppet
Create new.

N

NULL_OBJECT - Static variable in interface de.unifreiburg.twodeedoo.scene.IPuppet
A puppet which is always at 0,0 and never paints itself
NULL_OBJECT - Static variable in interface de.unifreiburg.twodeedoo.scene.IScene
IScene which does nothing in a safe way.
NULL_OBJECT - Static variable in interface de.unifreiburg.twodeedoo.view.IKeyHandler
IKeyHandler which does nothing.
NULL_OBJECT - Static variable in interface de.unifreiburg.twodeedoo.view.IPainter
IPainter instance which does nothing.
NULL_OBJECT - Static variable in interface de.unifreiburg.twodeedoo.view.ISchedulable
an ISchedulable which does nothing.
NullActivity - Class in de.unifreiburg.twodeedoo.view
An activity which does nothing.
NullActivity() - Constructor for class de.unifreiburg.twodeedoo.view.NullActivity
 

O

onKeyPressed(int, ISimulationController) - Method in interface de.unifreiburg.twodeedoo.world.IWorld
A key has been pressed.
onKeyReleased(int, ISimulationController) - Method in interface de.unifreiburg.twodeedoo.world.IWorld
A key has been released
onTick(ISimulationController) - Method in interface de.unifreiburg.twodeedoo.world.IWorld
Time has passed.

P

paint(Graphics) - Method in class de.unifreiburg.twodeedoo.scene.AbstractPuppet
Paint to this graphics.
paint(Graphics) - Method in class de.unifreiburg.twodeedoo.scene.MultiImagePartPuppet
Delegate painting to brush.
paint(Graphics) - Method in class de.unifreiburg.twodeedoo.scene.SimpleScene
Paint in order of SimpleScene.puppets
paint(Graphics) - Method in class de.unifreiburg.twodeedoo.scene.SimpleTextPuppet
Paint the text.
paint(Graphics, int, int) - Method in interface de.unifreiburg.twodeedoo.view.IBrush
Paint somewhere on this graphics.
paint(Graphics, int, int) - Method in class de.unifreiburg.twodeedoo.view.ImagePart
Paint.
paint(Graphics) - Method in interface de.unifreiburg.twodeedoo.view.IPainter
Paint something on my coordinates on the given graphics context.
paint(Graphics) - Method in class de.unifreiburg.twodeedoo.view.SceneView
Swing demands a repainting.
paint(ICanvas) - Method in interface de.unifreiburg.twodeedoo.world.IWorld
Paint the current state of the world onto the canvas.
paint(Graphics) - Method in class de.unifreiburg.twodeedoo.world.WorldAdapter
 

Q

quit() - Method in interface de.unifreiburg.twodeedoo.world.ISimulationController
Stop the world and quit intentionally.
quit() - Method in class de.unifreiburg.twodeedoo.world.SimulationControllerAdapter
 
quitGame() - Method in interface de.unifreiburg.twodeedoo.view.IGameController
Quit the game intentionally.
quitGame() - Method in class de.unifreiburg.twodeedoo.view.SceneView
 
quitRequested() - Method in class de.unifreiburg.twodeedoo.view.GameControlAdapter
 
quitRequested() - Method in interface de.unifreiburg.twodeedoo.view.IGameControlListener
The game wants the application to quit.

R

removeActor(IActor) - Method in class de.unifreiburg.twodeedoo.model.CompositeActor
Remove this actor from the actor set.
removeActor(IActor) - Method in interface de.unifreiburg.twodeedoo.model.ICompositeActor
Remove that actor from the actors of this activity.
removeFromScene() - Method in class de.unifreiburg.twodeedoo.scene.AbstractPuppet
Remove me from my containing puppet.
removeFromScene() - Method in interface de.unifreiburg.twodeedoo.scene.IPuppet
Remove this puppet from its scene.
removeGameControlListener(IGameControlListener) - Method in class de.unifreiburg.twodeedoo.view.SceneView
 
removePuppet(IPuppet) - Method in interface de.unifreiburg.twodeedoo.scene.IScene
Remove the IPuppet from this scene.
removePuppet(IPuppet) - Method in class de.unifreiburg.twodeedoo.scene.SimpleScene
Remove this IPuppet if it is among the puppets.
restartGame() - Method in interface de.unifreiburg.twodeedoo.view.IGameController
Restart the game from the beginning.
restartGame() - Method in class de.unifreiburg.twodeedoo.view.SceneView
 
restartRequested() - Method in class de.unifreiburg.twodeedoo.view.GameControlAdapter
 
restartRequested() - Method in interface de.unifreiburg.twodeedoo.view.IGameControlListener
The game wants the application to restart.
run(int, IGameController) - Method in class de.unifreiburg.twodeedoo.model.CompositeActor
Let all the contained actors run.
run(int, IGameController) - Method in class de.unifreiburg.twodeedoo.model.LinearMotionActor
Update the coordinates according to the elapsed time.
run(int, IGameController) - Method in interface de.unifreiburg.twodeedoo.view.ISchedulable
Perform some work.
run(int, IGameController) - Method in class de.unifreiburg.twodeedoo.view.NullActivity
 
run(int, IGameController) - Method in class de.unifreiburg.twodeedoo.world.WorldAdapter
 
run() - Method in class de.unifreiburg.twodeedoo.world.WorldApplication
This will be the first method to be run.
runWorld(IWorld) - Static method in class de.unifreiburg.twodeedoo.world.WorldApplication
Friendly all-in-one service to run a world: create a window, simulate the world etc.

S

scene - Variable in class de.unifreiburg.twodeedoo.model.BaseActor
The scene to which the actor can add puppets
SceneView - Class in de.unifreiburg.twodeedoo.view
I'm a Swing widget, I feed an IActivity with events and have a IPainter paint my window at regular intervals.
SceneView(int, int) - Constructor for class de.unifreiburg.twodeedoo.view.SceneView
Init.
setContainer(ICompositeActor) - Method in class de.unifreiburg.twodeedoo.model.BaseActor
Change the container
setContainer(ICompositeActor) - Method in interface de.unifreiburg.twodeedoo.model.IActor
Set the container of this actor.
setContainingScene(IScene) - Method in class de.unifreiburg.twodeedoo.scene.AbstractPuppet
Update my containment
setContainingScene(IScene) - Method in interface de.unifreiburg.twodeedoo.scene.IPuppet
notify this puppet that it is now contained in a different scene.
setPhase(int) - Method in interface de.unifreiburg.twodeedoo.scene.IPhasedPuppet
Which phase to draw from now on
setPhase(int) - Method in class de.unifreiburg.twodeedoo.scene.MultiImagePartPuppet
Change to a different phase.
setPuppet(IPuppet) - Method in class de.unifreiburg.twodeedoo.model.LinearMotionActor
Change the puppet which will be moved around.
setScene(IScene) - Method in class de.unifreiburg.twodeedoo.model.BaseActor
Set the scene
setScene(IScene) - Method in class de.unifreiburg.twodeedoo.model.CompositeActor
Setter for scene.
setScene(IPainter) - Method in class de.unifreiburg.twodeedoo.view.SceneView
Set the scene
setText(String) - Method in interface de.unifreiburg.twodeedoo.scene.ITextPuppet
Change the text to display.
setText(String) - Method in class de.unifreiburg.twodeedoo.scene.SimpleTextPuppet
Set the text.
setVelocity(double, double) - Method in class de.unifreiburg.twodeedoo.model.LinearMotionActor
Set a new velocity
SimpleScene - Class in de.unifreiburg.twodeedoo.scene
Simple IScene as a composite of IPainters.
SimpleScene() - Constructor for class de.unifreiburg.twodeedoo.scene.SimpleScene
 
SimpleTextPuppet - Class in de.unifreiburg.twodeedoo.scene
IPuppet which displays a string of text in default font and color.
SimpleTextPuppet(int, int) - Constructor for class de.unifreiburg.twodeedoo.scene.SimpleTextPuppet
Init with coordinates and empty text.
SimulationControllerAdapter - Class in de.unifreiburg.twodeedoo.world
Adapt IGameController (from complicated twodeedoo) to ISimulationController from twodeedoo-world.
SimulationControllerAdapter(IGameController) - Constructor for class de.unifreiburg.twodeedoo.world.SimulationControllerAdapter
Create adapter from IGameController to ISimulationController
startPlaying() - Method in class de.unifreiburg.twodeedoo.world.WorldApplication
Start interacting with the game.
stop() - Method in class de.unifreiburg.twodeedoo.view.SceneView
Stop the timer, so that we may get rid of the timer thread.
switchToActivity(IActivity) - Method in interface de.unifreiburg.twodeedoo.view.IGameController
Tell the simulator to run a new activity instead of the current activity.
switchToActivity(IActivity) - Method in class de.unifreiburg.twodeedoo.view.SceneView
 

T

toString() - Method in class de.unifreiburg.twodeedoo.scene.MultiImagePartPuppet
Nice stringification.
toString() - Method in class de.unifreiburg.twodeedoo.view.ImagePart
nice string representation

U

UnimplementedStubCalledException - Exception in de.unifreiburg.twodeedoo.test
A deliberately unimplemented method of a stub has been called.
UnimplementedStubCalledException() - Constructor for exception de.unifreiburg.twodeedoo.test.UnimplementedStubCalledException
 
UnimplementedStubCalledException(String, Throwable) - Constructor for exception de.unifreiburg.twodeedoo.test.UnimplementedStubCalledException
 
UnimplementedStubCalledException(String) - Constructor for exception de.unifreiburg.twodeedoo.test.UnimplementedStubCalledException
 
UnimplementedStubCalledException(Throwable) - Constructor for exception de.unifreiburg.twodeedoo.test.UnimplementedStubCalledException
 

W

WorldAdapter - Class in de.unifreiburg.twodeedoo.world
Adapter from the world package's IWorld to twodeedoo's Activity+Painter.
WorldAdapter(IWorld) - Constructor for class de.unifreiburg.twodeedoo.world.WorldAdapter
Create an adapter
WorldApplication - Class in de.unifreiburg.twodeedoo.world
Application which runs one IWorld.
WorldApplication(IWorld) - Constructor for class de.unifreiburg.twodeedoo.world.WorldApplication
Create an application to run one world.

X

x - Variable in class de.unifreiburg.twodeedoo.model.LinearMotionActor
x coordinate (in scene units) of the puppet's reference point
x - Variable in class de.unifreiburg.twodeedoo.scene.AbstractPuppet
x position of refence point, scene units

Y

y - Variable in class de.unifreiburg.twodeedoo.model.LinearMotionActor
y coordinate (in scene units) of the puppet's reference point
y - Variable in class de.unifreiburg.twodeedoo.scene.AbstractPuppet
y position of reference point, scene units.

A B C D F G I K L M N O P Q R S T U W X Y