implementation.gridpuzzle
Class GameGridX

java.lang.Object
  extended by implementation.gridpuzzle.GameGridX

public class GameGridX
extends java.lang.Object

Author:
Eden_06

Constructor Summary
GameGridX(GameGridX game)
           
GameGridX(int width, int height)
           
 
Method Summary
 boolean comparable(GameGridX g)
           
static int distance(int x1, int y1, int x2, int y2)
           
 boolean equals(GameGridX g)
           
 boolean equals(java.lang.Object o)
           
protected  void finalize()
           
 int get(int x, int y)
           
 int getHeight()
           
 int getWidth()
           
 int hashCode()
           
 int highestNumber()
           
 void initialize()
           
 boolean isLegal()
           
 boolean move(int x, int y)
           
 java.util.List<java.awt.Point> movements()
           
 java.awt.Point positionOf(int value)
           
 void randomize()
           
 void set(int x, int y, int value)
           
protected  int[] toArray()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GameGridX

public GameGridX(int width,
                 int height)

GameGridX

public GameGridX(GameGridX game)
Method Detail

distance

public static int distance(int x1,
                           int y1,
                           int x2,
                           int y2)

get

public int get(int x,
               int y)

set

public void set(int x,
                int y,
                int value)

isLegal

public boolean isLegal()

highestNumber

public int highestNumber()

getWidth

public int getWidth()

getHeight

public int getHeight()

positionOf

public java.awt.Point positionOf(int value)

move

public boolean move(int x,
                    int y)

movements

public java.util.List<java.awt.Point> movements()

randomize

public void randomize()

initialize

public void initialize()

comparable

public boolean comparable(GameGridX g)

equals

public boolean equals(GameGridX g)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toArray

protected int[] toArray()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object