|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.sql.SQLPeerDatum
org.starhope.appius.game.Room
org.starhope.appius.game.maze.MazeRoom
public abstract class MazeRoom
WRITEME
| Field Summary | |
|---|---|
private org.starhope.appius.geometry.Coord2D[] |
donors
WRITEME |
private boolean[] |
doorLocked
WRITEME |
(package private) int[] |
doorTileX
WRITEME |
(package private) int[] |
doorTileY
WRITEME |
private AbstractRoom[] |
doorTo
WRITEME |
protected int |
maxX
WRITEME: Document this brpocock@star-hope.org |
protected int |
maxY
WRITEME: Document this brpocock@star-hope.org |
protected int |
numDonors
WRITEME: Document this brpocock@star-hope.org |
protected int |
numDoors
WRITEME: Document this brpocock@star-hope.org |
private static long |
serialVersionUID
Java serialization unique ID |
private static double |
tile_height
height of a tile |
private static double |
tile_width
width of a tile |
private static double |
tile_x_offset
WRITEME |
private static double |
tile_x_start
WRITEME: Document this brpocock@star-hope.org |
private static double |
tile_y_offset
WRITEME |
private static double |
tile_y_start
WRITEME: Document this brpocock@star-hope.org |
private int[][] |
tileArray
WRITEME |
| Fields inherited from class org.starhope.appius.game.Room |
|---|
MAX_X, MAX_Y, myID |
| Constructor Summary | |
|---|---|
MazeRoom(AbstractZone abstractZone,
int i)
WRITEME: Document this constructor brpocock@star-hope.org |
|
| Method Summary | |
|---|---|
private void |
clearAllDoors()
WRITEME |
private void |
clearAllTiles()
WRITEME |
(package private) void |
closeDoor(int i)
WRITEME |
void |
createTile()
WRITEME: Document this method brpocock@star-hope.org |
void |
createTile(org.starhope.appius.geometry.Coord2D donor)
WRITEME: Document this method brpocock@star-hope.org |
void |
destroyTile()
WRITEME: Document this method brpocock@star-hope.org |
boolean |
equals(Object other)
This is an overriding method. |
abstract String |
getMonikerPrefix()
WRITEME: Document this method brpocock@star-hope.org |
private int |
getOffsetX(int x,
int y)
WRITEME: Document this method brpocock@star-hope.org |
private int |
getOffsetY(int x,
int y)
WRITEME: Document this method brpocock@star-hope.org |
abstract String |
getRoomFilename()
WRITEME: Document this method brpocock@star-hope.org |
private String |
getTileAnimVar(int x,
int y)
|
private String |
getTilePoly(int x,
int y)
generate the polygon string describing the surface of a given tile to the client |
private String |
getTileZoneVar(int x,
int y)
|
int |
hashCode()
This is an overriding method. |
boolean |
hasOpenDoor()
WRITEME: Document this method brpocock@star-hope.org |
private void |
hideDoor(int i)
WRITEME |
private boolean |
isConnected(int x1,
int y1,
int x2,
int y2)
WRITEME: Document this method brpocock@star-hope.org |
int |
openDoor(AbstractRoom otherRoom)
WRITEME: Document this method brpocock@star-hope.org |
(package private) void |
openDoor(int i,
AbstractRoom abstractRoom)
WRITEME |
private void |
setTileAbsent(int x,
int y)
WRITEME: Document this method brpocock@star-hope.org |
private void |
setTileDangerous(int x,
int y)
WRITEME: Document this method brpocock@star-hope.org |
private void |
setTileWalkable(int x,
int y)
WRITEME: Document this method brpocock@star-hope.org |
private boolean |
testTileForConnection(boolean[][] connected,
int x,
int y)
WRITEME: Document this method brpocock@star-hope.org |
private boolean |
testTilesAround(boolean[][] connected,
int x,
int y)
WRITEME: Document this method brpocock@star-hope.org |
| Methods inherited from class org.starhope.appius.sql.SQLPeerDatum |
|---|
changed, compareTo, findInCache, get, saveInCache, set |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private static final double tile_height
private static final double tile_width
private static final double tile_x_offset
private static final double tile_x_start
private static final double tile_y_offset
private static final double tile_y_start
private final org.starhope.appius.geometry.Coord2D[] donors
private final boolean[] doorLocked
final int[] doorTileX
final int[] doorTileY
private final AbstractRoom[] doorTo
protected int maxX
protected int maxY
protected int numDonors
protected int numDoors
private final int[][] tileArray
| Constructor Detail |
|---|
public MazeRoom(AbstractZone abstractZone,
int i)
abstractZone - WRITEMEi - WRITEME| Method Detail |
|---|
private void clearAllDoors()
private void clearAllTiles()
void closeDoor(int i)
i - WRITEMEpublic void createTile()
public void createTile(org.starhope.appius.geometry.Coord2D donor)
donor - the donor creating a tilepublic void destroyTile()
public boolean equals(Object other)
Room
equals in class RoomRoom.equals(org.starhope.appius.game.AbstractRoom)public abstract String getMonikerPrefix()
private int getOffsetX(int x,
int y)
x - WRITEMEy - WRITEME
private int getOffsetY(int x,
int y)
x - WRITEMEy - WRITEME
public abstract String getRoomFilename()
private String getTileAnimVar(int x,
int y)
x - WRITEMEy - WRITEME
private String getTilePoly(int x,
int y)
x - the tile's xy - the tile's y
private String getTileZoneVar(int x,
int y)
x - WRITEMEy - WRITEME
public int hashCode()
Room
hashCode in interface AbstractRoomhashCode in class RoomRoom.hashCode()public boolean hasOpenDoor()
private void hideDoor(int i)
i - WRITEME
private boolean isConnected(int x1,
int y1,
int x2,
int y2)
x1 - WRITEMEy1 - WRITEMEx2 - WRITEMEy2 - WRITEME
public int openDoor(AbstractRoom otherRoom)
otherRoom - WRITEME
void openDoor(int i,
AbstractRoom abstractRoom)
throws IndexOutOfBoundsException
i - WRITEMEabstractRoom - WRITEME
IndexOutOfBoundsException - WRITEME
private void setTileAbsent(int x,
int y)
x - WRITEMEy - WRITEME
private void setTileDangerous(int x,
int y)
x - WRITEMEy - WRITEME
private void setTileWalkable(int x,
int y)
x - xy - y
private boolean testTileForConnection(boolean[][] connected,
int x,
int y)
connected - WRITEMEx - WRITEMEy - WRITEME
private boolean testTilesAround(boolean[][] connected,
int x,
int y)
connected - WRITEMEx - WRITEMEy - WRITEME
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||