implementation.gridpuzzle
Class GameGridX
java.lang.Object
implementation.gridpuzzle.GameGridX
public class GameGridX
- extends java.lang.Object
- Author:
- Eden_06
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
GameGridX
public GameGridX(int width,
int height)
GameGridX
public GameGridX(GameGridX game)
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