|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Player<B extends Block<B,E>,E extends GameEntity<B,E>>
This interface will be implemented for any class that should represent a player in the game.
This class is a generic that takes the general block type and the general entity type for each game.
| Field Summary | |
|---|---|
static int |
EAST_PANEL
|
static int |
GAME_RUNNING
|
static int |
GAME_SUCCESS
|
static int |
NORTH_PANEL
|
static int |
PLAYER_DEAD
|
static int |
SOUTH_PANEL
|
static int |
WEST_PANEL
|
| Method Summary | |
|---|---|
int |
gameStatus()
Returns one of the three constants above telling what the status of the game is. |
java.awt.Container |
getGameStatusPanel(int loc)
This method returns a GUI container that shows extra information in your game. |
| Methods inherited from interface edu.trinity.cs.gamecore.GameEntity |
|---|
followLinks, getEditPropertiesPanel, getImage, getLocation, getUpdateTime, partialSizeX, partialSizeY, setLocation, update |
| Field Detail |
|---|
static final int GAME_RUNNING
static final int PLAYER_DEAD
static final int GAME_SUCCESS
static final int NORTH_PANEL
static final int EAST_PANEL
static final int SOUTH_PANEL
static final int WEST_PANEL
| Method Detail |
|---|
int gameStatus()
java.awt.Container getGameStatusPanel(int loc)
loc - This integer specifies which side of the display the panel is being requested for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||