|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--zork2Class.Door
the class Door creation :5 mai 03 at 17:52:24
Field Summary | |
static java.lang.String |
IMG_FRONT_DOOR_DEFAULT_PATH
teh default north/south placed door image location on disk |
static java.lang.String |
IMG_NEXT_DOOR_DEFAULT_PATH
the default east/west placed door image location on disk |
Constructor Summary | |
Door()
default Constructor for Door. |
|
Door(Room laPiece)
Constructor for Door. |
|
Door(java.lang.String laPiece)
Constructor for Door. |
Method Summary | |
boolean |
CanBeOpen()
Method CanBeOpen. |
void |
checkAndSetImgDoor(java.lang.String string)
void Door::checkAndSetImgDoor check the door location and set the valide default image for the door |
boolean |
doorIsOpen()
Returns if the door is Open. |
Room |
getDestination()
Returns the destination room. |
java.lang.String |
getDestinationName()
Returns the destination room name. |
java.awt.Image |
getImgDoor()
Returns the Door's image. |
java.lang.String |
getKey()
Returns the door key. |
void |
setDestination(Room destination)
Sets the destination room. |
void |
setDestinationName(java.lang.String destination)
Sets the destination room name. |
void |
setImgDoor(java.awt.Image imgDoor)
Sets the Door's image. |
void |
setImgDoor(java.lang.String imgDoor)
Sets the Doors image location on disk. |
void |
setIsOpen(boolean isOpen)
Sets if the door is Open. |
void |
setKey(java.lang.String key)
Sets the item key name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String IMG_NEXT_DOOR_DEFAULT_PATH
public static final java.lang.String IMG_FRONT_DOOR_DEFAULT_PATH
Constructor Detail |
public Door()
public Door(java.lang.String laPiece)
laPiece
- destination room's namepublic Door(Room laPiece)
laPiece
- destination roomMethod Detail |
public boolean CanBeOpen()
public java.lang.String getDestinationName()
public boolean doorIsOpen()
public java.lang.String getKey()
public Room getDestination()
public java.awt.Image getImgDoor()
public void setDestinationName(java.lang.String destination)
public void setIsOpen(boolean isOpen)
isOpen
- The value to setpublic void setKey(java.lang.String key)
key
- The key to setpublic void setDestination(Room destination)
destination
- The destination room to setpublic void setImgDoor(java.awt.Image imgDoor)
imgDoor
- The image to setpublic void setImgDoor(java.lang.String imgDoor)
imgDoor
- The imgDoor Path which is used to set.public void checkAndSetImgDoor(java.lang.String string)
string
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |