public class TextGrid.Cell
extends java.lang.Object
Constructor and Description |
---|
Cell(int x,
int y) |
Cell(TextGrid.Cell cell) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
TextGrid.Cell |
getEast() |
TextGrid.Cell |
getNE() |
CellSet |
getNeighbours4() |
CellSet |
getNeighbours8() |
TextGrid.Cell |
getNorth() |
TextGrid.Cell |
getNW() |
TextGrid.Cell |
getSE() |
TextGrid.Cell |
getSouth() |
TextGrid.Cell |
getSW() |
TextGrid.Cell |
getWest() |
int |
hashCode() |
boolean |
isEastOf(TextGrid.Cell cell) |
boolean |
isNextTo(int x2,
int y2) |
boolean |
isNextTo(TextGrid.Cell cell) |
boolean |
isNorthOf(TextGrid.Cell cell) |
boolean |
isSouthOf(TextGrid.Cell cell) |
boolean |
isWestOf(TextGrid.Cell cell) |
void |
scale(int s) |
java.lang.String |
toString() |
public Cell(TextGrid.Cell cell)
public Cell(int x, int y)
public TextGrid.Cell getNorth()
public TextGrid.Cell getSouth()
public TextGrid.Cell getEast()
public TextGrid.Cell getWest()
public TextGrid.Cell getNW()
public TextGrid.Cell getNE()
public TextGrid.Cell getSW()
public TextGrid.Cell getSE()
public CellSet getNeighbours4()
public CellSet getNeighbours8()
public boolean isNorthOf(TextGrid.Cell cell)
public boolean isSouthOf(TextGrid.Cell cell)
public boolean isWestOf(TextGrid.Cell cell)
public boolean isEastOf(TextGrid.Cell cell)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isNextTo(int x2, int y2)
public boolean isNextTo(TextGrid.Cell cell)
public java.lang.String toString()
toString
in class java.lang.Object
public void scale(int s)
Copyright © 2020. All Rights Reserved.