org.flexgen.map
Class MapTileOrientation

java.lang.Object
  extended by org.flexgen.map.MapTileOrientation

public class MapTileOrientation
extends java.lang.Object

Class representing the various orientations that map tiles can have.


Field Summary
static MapTileOrientation CLOCKWISE
          Orientation where the tile is rotated 90 degrees clockwise.
static MapTileOrientation COUNTER_CLOCKWISE
          Orientation where the tile is rotated 90 degrees counter-clockwise.
static MapTileOrientation FLIPPED
          Orientation where the tile is flipped around 180 degrees.
static MapTileOrientation UPRIGHT
          Orientation where the tile is placed upright without any rotation.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Determines whether or not this map tile orientation is equal to another map tile orientation.
 int hashCode()
          Returns a hash code value for the object.
 java.lang.String toString()
          Get the string representation of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UPRIGHT

public static final MapTileOrientation UPRIGHT
Orientation where the tile is placed upright without any rotation.


CLOCKWISE

public static final MapTileOrientation CLOCKWISE
Orientation where the tile is rotated 90 degrees clockwise.


FLIPPED

public static final MapTileOrientation FLIPPED
Orientation where the tile is flipped around 180 degrees.


COUNTER_CLOCKWISE

public static final MapTileOrientation COUNTER_CLOCKWISE
Orientation where the tile is rotated 90 degrees counter-clockwise.

Method Detail

toString

public java.lang.String toString()
Get the string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
The string representation of this object.

equals

public boolean equals(java.lang.Object obj)
Determines whether or not this map tile orientation is equal to another map tile orientation.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The map tile orientation against which to compare this map tile orientation.
Returns:
True if the two map tile orientations are equal, false otherwise.

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class java.lang.Object
Returns:
A hash code value for this object.


FlexGen Home

Get FlexGen at SourceForge.net. Fast, secure and Free Open Source software downloads

Copyright © 2009 - Jeffrey J. Weston <jjweston@gmail.com>

All rights reserved. Use is subject to license terms.