|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Room | |
---|---|
core | |
obj |
Uses of Room in core |
---|
Methods in core that return Room | |
---|---|
Room |
Grid.getStart()
Returns the start room |
Room |
Grid.objEast(Room p)
Returns the object(s) east of point p |
Room |
Grid.objNorth(Room p)
Returns the object(s) north of point p |
Room |
Grid.objSouth(Room p)
Returns the object(s) south of point p |
Room |
Grid.objWest(Room p)
Returns the object(s) west of point p |
Room |
Grid.roomAtOffset(Room p,
int xOffset,
int yOffset)
Returns the object(s) at an offset of point p |
Methods in core with parameters of type Room | |
---|---|
void |
Grid.add(Room obj,
int x,
int y)
Adds an object at the specified point |
int[] |
Grid.getCoord(Room p)
Returns the coordinates of point p in an array with index 0 = x and 1 = y |
Exit |
Grid.getExit(Room r,
java.lang.String d)
Returns the exit corresponding to the room and direction specified |
int[] |
Grid.getOffset(Room r1,
Room r2)
Returns the offset from r1 to r2 |
boolean |
Grid.isOnGrid(Room r)
Checks to see if the room is on the grid |
void |
Grid.linkRooms(Room r1,
Room r2,
boolean passable,
boolean locked,
java.lang.String name,
java.lang.String desc)
'Links' two rooms using an exit |
Room |
Grid.objEast(Room p)
Returns the object(s) east of point p |
Room |
Grid.objNorth(Room p)
Returns the object(s) north of point p |
Room |
Grid.objSouth(Room p)
Returns the object(s) south of point p |
Room |
Grid.objWest(Room p)
Returns the object(s) west of point p |
Room |
Grid.roomAtOffset(Room p,
int xOffset,
int yOffset)
Returns the object(s) at an offset of point p |
Uses of Room in obj |
---|
Methods in obj that return Room | |
---|---|
Room |
Exit.getDestRoom(Room r)
|
Room |
Player.getRoom()
|
Room[] |
Exit.getRooms()
|
Methods in obj with parameters of type Room | |
---|---|
Room |
Exit.getDestRoom(Room r)
|
void |
Exit.link(Room r)
|
void |
Player.setRoom(Room newRoom)
Effectively moves the player to whatever room is specified. |
Constructors in obj with parameters of type Room | |
---|---|
Player(Grid startingGrid,
Room startingRoom)
|
|
Player(java.lang.String name,
int age,
java.lang.String gender,
Grid startingGrid,
Room startingRoom)
Initializes basic player characteristics, such as name, gender, etc. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |