Package com.amirhn.Game
Class Location
java.lang.Object
com.amirhn.Game.Location
The type Location.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
row
public final int rowThe Row. -
column
public final int columnThe Row.
-
-
Constructor Details
-
Location
public Location(int row, int column) Instantiates a new Location.- Parameters:
row
- the rowcolumn
- the column
-
-
Method Details
-
valueOf
Value of location.- Parameters:
loc
- the loc- Returns:
- the location
-
valueOf
Value of location.- Parameters:
row
- the rowcolumn
- the column- Returns:
- the location
-
byOffset
By offset location.- Parameters:
dx
- the dxdy
- the dy- Returns:
- the location
-
isLight
public boolean isLight()Is light boolean.- Returns:
- the boolean
-
toString
To string string. -
equals
Equals boolean. -
hashCode
public int hashCode()Hash code int.
-