Class ImageMap

java.lang.Object
  |
  +--ImageMap

public class ImageMap
extends java.lang.Object

Simple class to associate an Image with a Name.

See Also:
Game, Battle, Monster

Constructor Summary
ImageMap(java.lang.String name, java.awt.Image img)
          Construct a new ImageMap with the name and Image specified.
 
Method Summary
 boolean equals(ImageMap im)
          Determine Equality of this and the ImageMap im.
 boolean equals(java.lang.Object o)
          Determine Equality of this and the Object o.
 boolean equals(java.lang.String s, boolean front)
          Determine Equality of this and the String specified.
 java.awt.Image getImage()
          Gets the Image of this
 java.lang.String getName()
          Gets the name of this Image
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageMap

public ImageMap(java.lang.String name,
                java.awt.Image img)
Construct a new ImageMap with the name and Image specified.

Parameters:
name - the name for the Image
img - the Image for this.
Method Detail

getImage

public java.awt.Image getImage()
Gets the Image of this

Returns:
the Image of this

getName

public java.lang.String getName()
Gets the name of this Image

Returns:
the name of this Image

equals

public boolean equals(java.lang.Object o)
Determine Equality of this and the Object o.

Overrides:
equals in class java.lang.Object
Parameters:
o - the Object to compare
Returns:
true iff equivalant

equals

public boolean equals(ImageMap im)
Determine Equality of this and the ImageMap im.

Returns:
true iff equivalant, ie have the same name and Image

equals

public boolean equals(java.lang.String s,
                      boolean front)
Determine Equality of this and the String specified.

Parameters:
s - the String to compare with this name, should not specify th -B or -F, only should be the name to search for
front - true if opponent
Returns:
true iff equivalant