![]() |
EOS 2
1.1.0
Einfache Objektbasierte Sprache
|
Klassen | |
class | IntRange |
Öffentliche Methoden | |
World () | |
World (JFrame wf) | |
void | load (String filename) throws WorldLoadFailedException, WorldNotFoundException, UnknownWorldVersionException |
void | load (InputStream worldStream) throws WorldLoadFailedException |
void | save (OutputStream targetStream) throws ParserConfigurationException, TransformerException, RobotException |
Camera | getCamera () |
void | fillRandom (int left, int top, int right, int bottom, double density) throws RobotException |
void | enter (Robot r) throws RobotException |
void | toggleEntrance (int x, int y, int z, Direction d) |
void | setEntranceCursor () |
void | setStone (int x, int y, int z) throws RobotException |
void | setStone (int x, int y, int z, MutableColor c) throws RobotException |
void | setStoneCursor () throws RobotException |
void | setRock (int x, int y, int z) throws RobotException |
void | setRockCursor () throws RobotException |
void | toggleMarkCursor () throws RobotException |
void | setMark (int x, int y, MutableColor c) throws RobotException |
void | setStoneColor (MutableColor c) |
MutableColor | getStoneColor () |
void | setMarkColor (MutableColor c) |
MutableColor | getMarkColor () |
void | dropStone (int x, int y) throws RobotException |
void | dropStone (int x, int y, MutableColor c) throws RobotException |
void | removeStone (int x, int y, int z) throws RobotException |
void | remove (int x, int y, int z) throws RobotException |
void | removeCursor () throws RobotException |
void | pickupStone (int x, int y) throws RobotException |
TreeMap< Coordinate, Column > | getColumns () |
LinkedList< Entrance > | getEntrances () |
LinkedList< Robot > | getRobots () |
IntRange | getxRange () |
IntRange | getyRange () |
void | setShowCursor (boolean showCursor) |
int | getCursorX () |
int | getCursorY () |
int | getCursorZ () |
void | setCursor (int x, int y, int z) |
boolean | isShowCursor () |
void | moveCursorNorth () |
void | moveCursorSouth () |
void | moveCursorWest () |
void | moveCursorEast () |
void | moveCursorUp () |
void | moveCursorDown () |
void | terminate () |
int | getRobotCount () |
int | getEntranceCount () |
void | setRange (Integer minX, Integer maxX, Integer minY, Integer maxY) |
Geschützte Methoden | |
Column | getColumn (int x, int y) |
Column | getColumn (Coordinate co) |
Eine Welt (World) ist die Grundlage, um mit einem Roboter (Robot) zu arbeiten. Sie erzeugt das 3D Fenster und verwaltet alle Inhalte der Welt.
Definiert in Zeile 51 der Datei World.java.
de.lathanda.eos.robot.World.World | ( | ) |
Erzeugt eine neue Welt inklusive eines Fensters.
Definiert in Zeile 99 der Datei World.java.
de.lathanda.eos.robot.World.World | ( | JFrame | wf | ) |
Erzeugt eine neue Welt ohne eigenes Fenster.
Definiert in Zeile 108 der Datei World.java.
void de.lathanda.eos.robot.World.dropStone | ( | int | x, |
int | y | ||
) | throws RobotException |
void de.lathanda.eos.robot.World.dropStone | ( | int | x, |
int | y, | ||
MutableColor | c | ||
) | throws RobotException |
Lässt einen farbigen Stein von ganz oben Fallen.
x | |
y | |
c | Farbe des Steins |
Definiert in Zeile 645 der Datei World.java.
void de.lathanda.eos.robot.World.enter | ( | Robot | r | ) | throws RobotException |
Roboter betritt die Welt beim ersten freien Eingang.
r |
RobotException |
Definiert in Zeile 502 der Datei World.java.
void de.lathanda.eos.robot.World.fillRandom | ( | int | left, |
int | top, | ||
int | right, | ||
int | bottom, | ||
double | density | ||
) | throws RobotException |
Füllt den Bereich der Welt zufällig mit Steinen.
left | Linke Grenze |
top | Obere Grenze |
right | Rechte Grenze |
bottom | Untere Grenze |
density | Wahrscheinlichkeit einen Stein zu setzen. 0 Nie 1 Immer |
RobotException |
Definiert in Zeile 437 der Datei World.java.
Camera de.lathanda.eos.robot.World.getCamera | ( | ) |
|
protected |
|
protected |
TreeMap<Coordinate, Column> de.lathanda.eos.robot.World.getColumns | ( | ) |
Definiert in Zeile 693 der Datei World.java.
int de.lathanda.eos.robot.World.getCursorX | ( | ) |
Definiert in Zeile 831 der Datei World.java.
int de.lathanda.eos.robot.World.getCursorY | ( | ) |
Definiert in Zeile 835 der Datei World.java.
int de.lathanda.eos.robot.World.getCursorZ | ( | ) |
Definiert in Zeile 839 der Datei World.java.
int de.lathanda.eos.robot.World.getEntranceCount | ( | ) |
Definiert in Zeile 890 der Datei World.java.
LinkedList<Entrance> de.lathanda.eos.robot.World.getEntrances | ( | ) |
Definiert in Zeile 697 der Datei World.java.
MutableColor de.lathanda.eos.robot.World.getMarkColor | ( | ) |
int de.lathanda.eos.robot.World.getRobotCount | ( | ) |
Definiert in Zeile 887 der Datei World.java.
LinkedList<Robot> de.lathanda.eos.robot.World.getRobots | ( | ) |
Definiert in Zeile 701 der Datei World.java.
MutableColor de.lathanda.eos.robot.World.getStoneColor | ( | ) |
IntRange de.lathanda.eos.robot.World.getxRange | ( | ) |
Definiert in Zeile 705 der Datei World.java.
IntRange de.lathanda.eos.robot.World.getyRange | ( | ) |
Definiert in Zeile 720 der Datei World.java.
boolean de.lathanda.eos.robot.World.isShowCursor | ( | ) |
Definiert in Zeile 847 der Datei World.java.
void de.lathanda.eos.robot.World.load | ( | InputStream | worldStream | ) | throws WorldLoadFailedException |
Lädt eine Welt aus einem Datenstrom.
worldStream |
WorldLoadFailedException | |
RobotException | |
ParserConfigurationException | |
SAXException | |
IOException |
Definiert in Zeile 137 der Datei World.java.
void de.lathanda.eos.robot.World.load | ( | String | filename | ) | throws WorldLoadFailedException, WorldNotFoundException, UnknownWorldVersionException |
Lädt eine Welt aus einer Datei
filename |
WorldLoadFailedException | |
WorldNotFoundException |
Definiert in Zeile 119 der Datei World.java.
void de.lathanda.eos.robot.World.moveCursorDown | ( | ) |
Definiert in Zeile 866 der Datei World.java.
void de.lathanda.eos.robot.World.moveCursorEast | ( | ) |
Definiert in Zeile 860 der Datei World.java.
void de.lathanda.eos.robot.World.moveCursorNorth | ( | ) |
Definiert in Zeile 851 der Datei World.java.
void de.lathanda.eos.robot.World.moveCursorSouth | ( | ) |
Definiert in Zeile 854 der Datei World.java.
void de.lathanda.eos.robot.World.moveCursorUp | ( | ) |
Definiert in Zeile 863 der Datei World.java.
void de.lathanda.eos.robot.World.moveCursorWest | ( | ) |
Definiert in Zeile 857 der Datei World.java.
void de.lathanda.eos.robot.World.pickupStone | ( | int | x, |
int | y | ||
) | throws RobotException |
Hebt den obersten Stein auf.
x | |
y |
RobotException |
Definiert in Zeile 689 der Datei World.java.
void de.lathanda.eos.robot.World.remove | ( | int | x, |
int | y, | ||
int | z | ||
) | throws RobotException |
Entfernt alles von dieser Position.
x | |
y | |
z |
RobotException |
Definiert in Zeile 666 der Datei World.java.
void de.lathanda.eos.robot.World.removeCursor | ( | ) | throws RobotException |
Definiert in Zeile 669 der Datei World.java.
void de.lathanda.eos.robot.World.removeStone | ( | int | x, |
int | y, | ||
int | z | ||
) | throws RobotException |
Entfernt den Stein von dieser Position.
x | |
y | |
z |
CubeImmutableException |
Definiert in Zeile 655 der Datei World.java.
void de.lathanda.eos.robot.World.save | ( | OutputStream | targetStream | ) | throws ParserConfigurationException, TransformerException, RobotException |
Speichert eine Welt als XML Strom
targetStream |
ParserConfigurationException | |
TransformerException | |
RobotException | |
DOMException |
Definiert in Zeile 335 der Datei World.java.
void de.lathanda.eos.robot.World.setCursor | ( | int | x, |
int | y, | ||
int | z | ||
) |
Definiert in Zeile 842 der Datei World.java.
void de.lathanda.eos.robot.World.setEntranceCursor | ( | ) |
Erschafft einen neuen Eingang an der Cursorposition
Definiert in Zeile 543 der Datei World.java.
void de.lathanda.eos.robot.World.setMark | ( | int | x, |
int | y, | ||
MutableColor | c | ||
) | throws RobotException |
Definiert in Zeile 599 der Datei World.java.
void de.lathanda.eos.robot.World.setMarkColor | ( | MutableColor | c | ) |
void de.lathanda.eos.robot.World.setRange | ( | Integer | minX, |
Integer | maxX, | ||
Integer | minY, | ||
Integer | maxY | ||
) |
Definiert in Zeile 894 der Datei World.java.
void de.lathanda.eos.robot.World.setRock | ( | int | x, |
int | y, | ||
int | z | ||
) | throws RobotException |
Setzt einen unveränderlichen Stein bei diesen Koordinaten ohne Rücksicht darauf was sich in diesem Feld befindet.
x | |
y | |
z |
RobotException |
Definiert in Zeile 588 der Datei World.java.
void de.lathanda.eos.robot.World.setRockCursor | ( | ) | throws RobotException |
Definiert in Zeile 592 der Datei World.java.
void de.lathanda.eos.robot.World.setShowCursor | ( | boolean | showCursor | ) |
Definiert in Zeile 826 der Datei World.java.
void de.lathanda.eos.robot.World.setStone | ( | int | x, |
int | y, | ||
int | z | ||
) | throws RobotException |
Setzt einen Stein bei diesen Koordinaten ohne Rücksicht darauf was sich in diesem Feld befindet.
x | |
y | |
z |
RobotException |
Definiert in Zeile 564 der Datei World.java.
void de.lathanda.eos.robot.World.setStone | ( | int | x, |
int | y, | ||
int | z, | ||
MutableColor | c | ||
) | throws RobotException |
Setzt einen farbigen Stein bei diesen Koordinaten ohne Rücksicht darauf was sich in diesem Feld befindet.
x | |
y | |
z | |
c | Farbe des Steins |
RobotException |
Definiert in Zeile 575 der Datei World.java.
void de.lathanda.eos.robot.World.setStoneColor | ( | MutableColor | c | ) |
void de.lathanda.eos.robot.World.setStoneCursor | ( | ) | throws RobotException |
Definiert in Zeile 578 der Datei World.java.
void de.lathanda.eos.robot.World.terminate | ( | ) |
Aufräumarbeiten am Ende der Ausführung.
Implementiert de.lathanda.eos.base.event.CleanupListener.
Definiert in Zeile 872 der Datei World.java.
void de.lathanda.eos.robot.World.toggleEntrance | ( | int | x, |
int | y, | ||
int | z, | ||
Direction | d | ||
) |
void de.lathanda.eos.robot.World.toggleMarkCursor | ( | ) | throws RobotException |
Definiert in Zeile 596 der Datei World.java.