|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttest.android.Room
public class Room
A room describes the current environment. Only one room can be displayed at one time.
| Constructor Summary | |
|---|---|
Room(double w,
double h,
double d,
java.lang.String desc)
Constructor for objects of class Room |
|
| Method Summary | |
|---|---|
void |
addBlock(Block block)
Add a block to this room. |
java.util.ArrayList<Block> |
getBlocks()
Get the block |
double |
getDepth()
Accessor for room's dimension |
java.lang.String |
getDescription()
Get the description of the room |
Room |
getExit(java.lang.String direction)
Get the room a direction exits to. |
double |
getWidth()
Accessor for the room's dimension |
void |
setExit(java.lang.String direction,
Room room)
Create an exit to a room |
void |
setTextureEast(java.lang.String fileName)
Mutator for the wall texture |
void |
setTextureNorth(java.lang.String fileName)
Mutator for the wall texture |
void |
setTextureSouth(java.lang.String fileName)
Mutator for the wall texture |
void |
setTextureWest(java.lang.String fileName)
Mutator for the wall texture |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Room(double w,
double h,
double d,
java.lang.String desc)
| Method Detail |
|---|
public void addBlock(Block block)
block - The block object to be added to the roompublic java.util.ArrayList<Block> getBlocks()
public java.lang.String getDescription()
public void setTextureNorth(java.lang.String fileName)
public void setTextureEast(java.lang.String fileName)
public void setTextureSouth(java.lang.String fileName)
public void setTextureWest(java.lang.String fileName)
public void setExit(java.lang.String direction,
Room room)
direction - the direction of the exitroom - the room that this direction exits topublic Room getExit(java.lang.String direction)
direction - a string indicating a direction
public double getWidth()
public double getDepth()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||