wyvern.lib.properties
Interface Targetable

All Known Implementing Classes:
RangeWeapon, Spell, SpellProxy, Wand

public interface Targetable

Indicates that the object can be "fired" in a certain direction.

Version:
1.0, Nov 17, 1999
Author:
Steve Yegge

Method Summary
 void fireDirection(Commandable agent, int dir)
          Tells the object to fire itself in the specified direction.
 void fireLocation(Commandable agent, Point target)
          Tells the object to fire itself along the line specified from the agent to a destination point.
 

Method Detail

fireDirection

public void fireDirection(Commandable agent,
                          int dir)
Tells the object to fire itself in the specified direction.

Parameters:
agent - the agent firing the object
dir - a wyvern.lib.Direction cardinal direction

fireLocation

public void fireLocation(Commandable agent,
                         Point target)
Tells the object to fire itself along the line specified from the agent to a destination point.

Parameters:
agent - the agent firing the object
target - the destination point, perhaps chosen using the mouse.