|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Common interface for Traps.
Method Summary | |
boolean |
isRevealed()
Returns true if the trap has been revealed already. |
void |
reveal(Commandable agent)
Someone discovered the trap via searching (or stepping on it.) |
void |
reveal(Commandable agent,
boolean silent)
Reveals the trap, with an option not to print a message. |
void |
steppedOn(Monster m)
Someone stepped on the trap. |
Method Detail |
public boolean isRevealed()
public void reveal(Commandable agent)
agent
- the agent who discovered the trappublic void reveal(Commandable agent, boolean silent)
agent
- the person who found itsilent
- true to skip the messagepublic void steppedOn(Monster m)
m
- the monster who stepped on it
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |