org.jzuul.engine
Class Directions

java.lang.Object
  extended byorg.jzuul.engine.Directions

public class Directions
extends Object

Diese Klasse definiert Konstanten für Type Variablen in der GameMap

Version:
$Revision: 1.4 $

Field Summary
static int BELOW
          Semantischer Alias für BELOW_OF
static int BELOW_OF
          Room befindet sich unter Room (es existiert eine Treppe)
static int DIRECTION_ERROR
          Ein Richtungsfehler
static int EAST
          Semantischer Alias für EAST_OF
static int EAST_OF
          Room befindet sich im Osten von Room
static int NORTH
          Semantischer Alias für NORTH_OF
static int NORTH_OF
          Room befindet sich im Norden von Room
static int NUMBER_OF_DIRECTIONS
          Die Anzahl der unterschiedlichen Richtungen
static int SOUTH
          Semantischer Alias für SOUTH_OF
static int SOUTH_OF
          Room befindes sich im Süden von Room
static int TOP
          Semantischer Alias für TOP_OF
static int TOP_OF
          Room befindet sich über Room (es existiert eine Treppe)
static int WEST
          Semantischer Alias für WEST_OF
static int WEST_OF
          Room befindes sich im Westen von Room
 
Constructor Summary
Directions()
           
 
Method Summary
static int directionToInt(String direction)
          Wandelt einen Richtungsnamen in seine Zahl um
static String getDirectionName(int direction)
          Wandelt eine Direction Konstante in die text Representation um
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUMBER_OF_DIRECTIONS

public static final int NUMBER_OF_DIRECTIONS
Die Anzahl der unterschiedlichen Richtungen

See Also:
Constant Field Values

NORTH_OF

public static final int NORTH_OF
Room befindet sich im Norden von Room

See Also:
Constant Field Values

EAST_OF

public static final int EAST_OF
Room befindet sich im Osten von Room

See Also:
Constant Field Values

SOUTH_OF

public static final int SOUTH_OF
Room befindes sich im Süden von Room

See Also:
Constant Field Values

WEST_OF

public static final int WEST_OF
Room befindes sich im Westen von Room

See Also:
Constant Field Values

TOP_OF

public static final int TOP_OF
Room befindet sich über Room (es existiert eine Treppe)

See Also:
Constant Field Values

BELOW_OF

public static final int BELOW_OF
Room befindet sich unter Room (es existiert eine Treppe)

See Also:
Constant Field Values

NORTH

public static final int NORTH
Semantischer Alias für NORTH_OF

See Also:
Constant Field Values

EAST

public static final int EAST
Semantischer Alias für EAST_OF

See Also:
Constant Field Values

SOUTH

public static final int SOUTH
Semantischer Alias für SOUTH_OF

See Also:
Constant Field Values

WEST

public static final int WEST
Semantischer Alias für WEST_OF

See Also:
Constant Field Values

TOP

public static final int TOP
Semantischer Alias für TOP_OF

See Also:
Constant Field Values

BELOW

public static final int BELOW
Semantischer Alias für BELOW_OF

See Also:
Constant Field Values

DIRECTION_ERROR

public static final int DIRECTION_ERROR
Ein Richtungsfehler

See Also:
Constant Field Values
Constructor Detail

Directions

public Directions()
Method Detail

getDirectionName

public static String getDirectionName(int direction)
Wandelt eine Direction Konstante in die text Representation um

Parameters:
direction - Eine direction Konstante
Returns:
Die Stringrepresentation der Konstant, null bei fehler

directionToInt

public static int directionToInt(String direction)
Wandelt einen Richtungsnamen in seine Zahl um

Parameters:
direction - der Name einer Himmelrichtung
Returns:
die zugehörige Direction Nummer, DIRECTION_ERROR bei unbekanntem Namen


Copyright © 2004 JZuul.org All Rights Reserved.
This documentation may be distributed and/or modified under the terms of the FDL