wyvern.lib.properties
Interface Searchable

All Known Implementing Classes:
AbstractTrap

public interface Searchable

Interface for things that can be uncovered with the "search" command.

Version:
1.0, Mar 01, 2000
Author:
Steve Yegge

Method Summary
 boolean isRevealed()
          Returns true if this object has been revealed/found.
 void reveal(Commandable agent)
          Reveals the item after a successful search.
 

Method Detail

reveal

public void reveal(Commandable agent)
Reveals the item after a successful search. Called on the kernel thread. It's up to the Searchable item to do the appropriate thing, e.g. change its appearance and/or properties.

Parameters:
agent - the agent who discovered it - can be null if some external event revealed the item, but not usually.

isRevealed

public boolean isRevealed()
Returns true if this object has been revealed/found.

Returns:
true if the object has been discovered