| Package | Description |
|---|---|
| snakegame.algorithm | |
| snakegame.algorithm.euclidean | |
| snakegame.algorithm.manhattan | |
| snakegame.algorithm.util | |
| snakegame.map |
| Modifier and Type | Method and Description |
|---|---|
Direction |
IMoveAlgorithm.whereShouldIGo(List<Point> snake,
Direction direction,
Point food,
int rows,
int columns)
Retorna a direção da cobra.
|
| Modifier and Type | Method and Description |
|---|---|
Direction |
IMoveAlgorithm.whereShouldIGo(List<Point> snake,
Direction direction,
Point food,
int rows,
int columns)
Retorna a direção da cobra.
|
| Modifier and Type | Method and Description |
|---|---|
Direction |
EuclideanAlgorithm.whereShouldIGo(List<Point> snake,
Direction direction,
Point food,
int rows,
int columns)
Retorna a direção da cobra.
|
| Modifier and Type | Method and Description |
|---|---|
Direction |
EuclideanAlgorithm.whereShouldIGo(List<Point> snake,
Direction direction,
Point food,
int rows,
int columns)
Retorna a direção da cobra.
|
| Modifier and Type | Method and Description |
|---|---|
Direction |
ManhattanDistanceAlgorithm.whereShouldIGo(List<Point> snake,
Direction direction,
Point food,
int rows,
int columns)
Retorna a direção da cobra.
|
| Modifier and Type | Method and Description |
|---|---|
Direction |
ManhattanDistanceAlgorithm.whereShouldIGo(List<Point> snake,
Direction direction,
Point food,
int rows,
int columns)
Retorna a direção da cobra.
|
| Modifier and Type | Method and Description |
|---|---|
Direction |
DeltaInt.getDirection()
Direção.
|
Direction |
DeltaDouble.getDirection()
Direção.
|
| Modifier and Type | Method and Description |
|---|---|
static List<Direction> |
Util.whereIsTheFood(Point head,
Point food)
Retorna a lista com as direções que a comida está em relação a cabeça da
cobra.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Util.isOpposite(Direction a,
Direction b)
Retorna true se as dadas direções são opostas, false caso contrário.
|
static Point |
Util.lookahead(List<Point> snake,
Direction direction,
int rows,
int columns)
Retorna o ponto a frente da cobra.
|
| Constructor and Description |
|---|
DeltaDouble(Double distance,
Direction direction)
Candidato.
|
DeltaInt(int distance,
Direction direction)
Candidato.
|
| Modifier and Type | Method and Description |
|---|---|
static Direction |
Direction.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Direction[] |
Direction.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SnakeTableModel.setDirection(Direction direction)
Define a direção da cobra.
|
Copyright © 2016 Tecgraf/PUC-Rio. All rights reserved.