rlgamekit.demo.walkaround
Class FeatureCodes

java.lang.Object
  extended by rlgamekit.demo.walkaround.FeatureCodes

public class FeatureCodes
extends java.lang.Object

Constants for dungeon features.


Field Summary
static int DOOR_OPEN
           
static int DOOR_SHUT
           
static int FOUNTAIN
           
static int GROUND
          Strictly seen, this is not a feature ...
static int OPEN
           
static int STAIRS_UP
           
static int TREE
           
static int WALL_BRICKS
           
static int WALL_ROCK
           
 
Constructor Summary
FeatureCodes()
           
 
Method Summary
static int getFeature(int tileNo)
          Extract feature number for a color+feature code
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GROUND

public static final int GROUND
Strictly seen, this is not a feature ...

See Also:
Constant Field Values

OPEN

public static final int OPEN
See Also:
Constant Field Values

WALL_BRICKS

public static final int WALL_BRICKS
See Also:
Constant Field Values

WALL_ROCK

public static final int WALL_ROCK
See Also:
Constant Field Values

STAIRS_UP

public static final int STAIRS_UP
See Also:
Constant Field Values

DOOR_SHUT

public static final int DOOR_SHUT
See Also:
Constant Field Values

DOOR_OPEN

public static final int DOOR_OPEN
See Also:
Constant Field Values

FOUNTAIN

public static final int FOUNTAIN
See Also:
Constant Field Values

TREE

public static final int TREE
See Also:
Constant Field Values
Constructor Detail

FeatureCodes

public FeatureCodes()
Method Detail

getFeature

public static final int getFeature(int tileNo)
Extract feature number for a color+feature code

Parameters:
tileNo - the code containing color + feature;
Returns:
The feature number.