Skip navigation links
A C D E G I K L M P R S U V W 

A

actionPerformed(ActionEvent) - Method in class snakegame.action.ChangeDifficultAction
actionPerformed(ActionEvent) - Method in class snakegame.action.ChangeMapSizeAction
actionPerformed(ActionEvent) - Method in class snakegame.action.PlayAction
addMapSizeChangedListener(MapSizeChangedListener) - Method in class snakegame.session.Session
Adiciona ouvinte.
addModeChangedListener(ModeChangedListener) - Method in class snakegame.session.Session
Adiciona ouvinte.
applicationEnded() - Method in class snakegame.SnakeGame
applicationStarted(JFrame) - Method in class snakegame.SnakeGame

C

Cell - Enum in snakegame.map
Enumeração que define os tipos de objetos que estão no mapa.
ChangeDifficultAction - Class in snakegame.action
Ação que modifica o nível de dificuldade do jogo.
ChangeDifficultAction(SnakeGame, Session, Level) - Constructor for class snakegame.action.ChangeDifficultAction
Construtor.
ChangeMapSizeAction - Class in snakegame.action
Ação que modifica o tamanho do mapa.
ChangeMapSizeAction(SnakeGame, Session, MapSize) - Constructor for class snakegame.action.ChangeMapSizeAction
Construtor.
color - Variable in enum snakegame.map.Cell
Cor.
compareTo(DeltaDouble) - Method in class snakegame.algorithm.util.DeltaDouble
compareTo(DeltaInt) - Method in class snakegame.algorithm.util.DeltaInt

D

DeltaDouble - Class in snakegame.algorithm.util
Distância em Double.
DeltaDouble(Double, Direction) - Constructor for class snakegame.algorithm.util.DeltaDouble
Candidato.
DeltaInt - Class in snakegame.algorithm.util
Distância em Integer.
DeltaInt(int, Direction) - Constructor for class snakegame.algorithm.util.DeltaInt
Candidato.
dimension - Variable in enum snakegame.session.MapSize
Tamanho aconselhado para o frame principal.
Direction - Enum in snakegame.map
Direção.

E

EuclideanAlgorithm - Class in snakegame.algorithm.euclidean
Algoritmo Guloso Euclidiano.
EuclideanAlgorithm() - Constructor for class snakegame.algorithm.euclidean.EuclideanAlgorithm
 

G

GameOverException - Exception in snakegame.exception
Exceção que sinaliza o fim do jogo.
GameOverException(String) - Constructor for exception snakegame.exception.GameOverException
Construtor.
GameOverException(Throwable) - Constructor for exception snakegame.exception.GameOverException
Construtor.
GameOverException(String, Throwable) - Constructor for exception snakegame.exception.GameOverException
Construtor.
getAlgorithm() - Method in class snakegame.session.Session
Algoritmo.
getDirection() - Method in class snakegame.algorithm.util.DeltaDouble
Direção.
getDirection() - Method in class snakegame.algorithm.util.DeltaInt
Direção.
getDistance() - Method in class snakegame.algorithm.util.DeltaDouble
Distância.
getDistance() - Method in class snakegame.algorithm.util.DeltaInt
Distância.
getLevel() - Method in class snakegame.session.Session
Nível de dificuldade.
getMapSize() - Method in class snakegame.session.Session
Tamanho do mapa.
getMode() - Method in class snakegame.session.Session
Estado do jogo.
getTableCellRendererComponent(JTable, Object, boolean, boolean, int, int) - Method in class snakegame.map.renderer.MapRenderer
getValueAt(int, int) - Method in class snakegame.map.SnakeTableModel

I

IMoveAlgorithm - Interface in snakegame.algorithm
Algoritmo de movimentação.
isCellEditable(int, int) - Method in class snakegame.map.SnakeTableModel
isOpposite(Direction, Direction) - Static method in class snakegame.algorithm.util.Util
Retorna true se as dadas direções são opostas, false caso contrário.

K

key - Variable in enum snakegame.session.Level
Chave de internacionalização.

L

Level - Enum in snakegame.session
Enumeração que define o nível de dificuldade.
lookahead(List<Point>, Direction, int, int) - Static method in class snakegame.algorithm.util.Util
Retorna o ponto a frente da cobra.

M

ManhattanDistanceAlgorithm - Class in snakegame.algorithm.manhattan
Algoritmo Guloso 'Distância em Manhattan'.
ManhattanDistanceAlgorithm() - Constructor for class snakegame.algorithm.manhattan.ManhattanDistanceAlgorithm
 
MapRenderer - Class in snakegame.map.renderer
Renderizador do mapa.
MapRenderer() - Constructor for class snakegame.map.renderer.MapRenderer
 
MapSize - Enum in snakegame.session
Constantes que definem o tamanho do mapa.
MapSizeChangedListener - Interface in snakegame.session.listener
Ouvinte que sinaliza que o tamanho do mapa foi alterado.
Mode - Enum in snakegame.session
Constantes que define o estado do jogo.
ModeChangedListener - Interface in snakegame.session.listener
Ouvinte que sinaliza que o estado do jogo foi alterado.
modeOff() - Method in interface snakegame.session.listener.ModeChangedListener
Jogo terminou.
modeOn(IMoveAlgorithm) - Method in interface snakegame.session.listener.ModeChangedListener
Jogo começou.
move() - Method in class snakegame.map.SnakeTableModel
Faz o movimento da cobra.
MoveTask - Class in snakegame
Rotina responsável pelo andamento do jogo.
MoveTask(Session, Timer, SnakeTableModel, JFrame) - Constructor for class snakegame.MoveTask
Construtor.

P

perform(MapSize) - Method in interface snakegame.session.listener.MapSizeChangedListener
Ação.
PlayAction - Class in snakegame.action
Ação que inicia o jogo.
PlayAction(SnakeGame, Session, IMoveAlgorithm) - Constructor for class snakegame.action.PlayAction
Construtor.

R

run() - Method in class snakegame.MoveTask

S

Session - Class in snakegame.session
Classe que representa a sessão do usuário.
Session(MapSize, Level) - Constructor for class snakegame.session.Session
Construtor.
setAlgorithm(IMoveAlgorithm) - Method in class snakegame.session.Session
Define o algoritmo.
setDirection(Direction) - Method in class snakegame.map.SnakeTableModel
Define a direção da cobra.
setLevel(Level) - Method in class snakegame.session.Session
Define o nível de dificuldade.
setMapSize(MapSize) - Method in class snakegame.session.Session
Tamanho do mapa.
setMode(Mode) - Method in class snakegame.session.Session
Define o estado do jogo.
size - Variable in enum snakegame.session.MapSize
Tamanho do mapa.
snakegame - package snakegame
 
SnakeGame - Class in snakegame
Aplicação.
SnakeGame(ICSDKEnvironment) - Constructor for class snakegame.SnakeGame
Construtor.
snakegame.action - package snakegame.action
 
snakegame.algorithm - package snakegame.algorithm
 
snakegame.algorithm.euclidean - package snakegame.algorithm.euclidean
 
snakegame.algorithm.manhattan - package snakegame.algorithm.manhattan
 
snakegame.algorithm.util - package snakegame.algorithm.util
 
snakegame.exception - package snakegame.exception
 
snakegame.map - package snakegame.map
 
snakegame.map.renderer - package snakegame.map.renderer
 
snakegame.session - package snakegame.session
 
snakegame.session.listener - package snakegame.session.listener
 
SnakeTableModel - Class in snakegame.map
Modelo da tabela que representa o mapa do jogo.
SnakeTableModel(MapSize, boolean, IMoveAlgorithm) - Constructor for class snakegame.map.SnakeTableModel
Construtor.
SnakeTableModel(MapSize) - Constructor for class snakegame.map.SnakeTableModel
Construtor.
step - Variable in enum snakegame.session.Level
Passo em milisegundos entre os movimentos.

U

Util - Class in snakegame.algorithm.util
Utilitário.
Util() - Constructor for class snakegame.algorithm.util.Util
 

V

valueOf(String) - Static method in enum snakegame.map.Cell
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum snakegame.map.Direction
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum snakegame.session.Level
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum snakegame.session.MapSize
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum snakegame.session.Mode
Returns the enum constant of this type with the specified name.
values() - Static method in enum snakegame.map.Cell
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum snakegame.map.Direction
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum snakegame.session.Level
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum snakegame.session.MapSize
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum snakegame.session.Mode
Returns an array containing the constants of this enum type, in the order they are declared.
VictoryException - Exception in snakegame.exception
Exceção que sinaliza que o jogo foi zerado.
VictoryException(String) - Constructor for exception snakegame.exception.VictoryException
Construtor.
VictoryException(Throwable) - Constructor for exception snakegame.exception.VictoryException
Construtor.
VictoryException(String, Throwable) - Constructor for exception snakegame.exception.VictoryException
Construtor.

W

whereIsTheFood(Point, Point) - Static method in class snakegame.algorithm.util.Util
Retorna a lista com as direções que a comida está em relação a cabeça da cobra.
whereShouldIGo(List<Point>, Direction, Point, int, int) - Method in class snakegame.algorithm.euclidean.EuclideanAlgorithm
Retorna a direção da cobra.
whereShouldIGo(List<Point>, Direction, Point, int, int) - Method in interface snakegame.algorithm.IMoveAlgorithm
Retorna a direção da cobra.
whereShouldIGo(List<Point>, Direction, Point, int, int) - Method in class snakegame.algorithm.manhattan.ManhattanDistanceAlgorithm
Retorna a direção da cobra.
A C D E G I K L M P R S U V W 
Skip navigation links

Copyright © 2016 Tecgraf/PUC-Rio. All rights reserved.