mdh.hephaestus2
Interface LocationReadOnly

All Superinterfaces:
Cloneable

public interface LocationReadOnly
extends Cloneable

A read-only interface to Location.

Author:
Copyright © 2002 by Mark Hughes <kamikaze@kuoi.asui.uidaho.edu>

Method Summary
 Object clone()
           
 boolean equals(Object o)
           
 int facing()
          Returns the facing of this location.
 int mapid()
          Returns the map id of this location.
 String toString()
          A human-readable string of this Location, in the form "[mapid x,y f]".
 int x()
          Returns the x-coord of this location.
 int y()
          Returns the y-coord of this location.
 

Method Detail

mapid

public int mapid()
Returns the map id of this location.


x

public int x()
Returns the x-coord of this location.


y

public int y()
Returns the y-coord of this location.


facing

public int facing()
Returns the facing of this location.


clone

public Object clone()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
A human-readable string of this Location, in the form "[mapid x,y f]".

Overrides:
toString in class Object