wyvern.lib.properties
Interface RandomTalker


public interface RandomTalker

Interface a monster can implement to supply its own messages during combat or normal moves. Used when the functionality provided by the wyvern.kernel.monsters.RandomMessages class isn't flexible enough.

Version:
1.0, Oct 3, 2000
Author:
Steve Yegge

Method Summary
 java.lang.String chooseRandomCombatMessage()
          Returns a random combat message.
 java.lang.String chooseRandomMessage()
          Returns a random non-combat message.
 

Method Detail

chooseRandomCombatMessage

public java.lang.String chooseRandomCombatMessage()
Returns a random combat message. Only called if the monster is in a combat state, such as "hostile".

Returns:
a message to display, or null if we don't want to talk this turn. Note: this will be called on EVERY attack, so make sure you do your own random roll if you want it to occur less frequently.

chooseRandomMessage

public java.lang.String chooseRandomMessage()
Returns a random non-combat message. Called if the monster is in a non-combat state, such as "wander".

Returns:
a message to display, or null if we don't want to talk this turn. Note: this will be called on EVERY attack, so make sure you do your own random roll if you want it to occur less frequently.