game.maps
Class Tile

java.lang.Object
  extended byjava.awt.geom.RectangularShape
      extended byjava.awt.geom.Rectangle2D
          extended byjava.awt.Rectangle
              extended bygame.maps.Tile
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable, java.awt.Shape

public class Tile
extends java.awt.Rectangle

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.geom.Rectangle2D
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float
 
Field Summary
 int[] speckX
           
 int[] speckY
           
static int STANDARD_TILE_SIZE
           
 
Fields inherited from class java.awt.Rectangle
height, width
 
Fields inherited from class java.awt.geom.Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
 
Constructor Summary
Tile(int x, int y, int type, double density)
           
 
Method Summary
 double getDensity()
           
 int getType()
           
 boolean isSpecial()
           
 void setSpecial(boolean special)
           
 java.lang.String toString()
           
 
Methods inherited from class java.awt.Rectangle
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, translate, union
 
Methods inherited from class java.awt.geom.Rectangle2D
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union
 
Methods inherited from class java.awt.geom.RectangularShape
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects
 

Field Detail

STANDARD_TILE_SIZE

public static int STANDARD_TILE_SIZE

speckX

public int[] speckX

speckY

public int[] speckY
Constructor Detail

Tile

public Tile(int x,
            int y,
            int type,
            double density)
Method Detail

getType

public int getType()

getDensity

public double getDensity()

toString

public java.lang.String toString()
See Also:
Object.toString()

isSpecial

public boolean isSpecial()

setSpecial

public void setSpecial(boolean special)