|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrlgamekit.demo.walkaround.Player
public class Player
In a real game, this would keep real player data.
| Field Summary | |
|---|---|
LayeredMap |
displayMap
The map data that is shown to the player (will not show hidden features or changed to "remembered" areas). |
LayeredMap |
gameMap
The actual game map. |
java.util.ArrayList<Item> |
inventory
The players inventory |
java.awt.Point |
location
Current location of the player |
static int |
MODE_CLOSE
|
static int |
MODE_MOVE
|
Registry<Item> |
objectRegistry
|
| Constructor Summary | |
|---|---|
Player(int playerX,
int playerY)
|
|
| Method Summary | |
|---|---|
int |
getMode()
|
void |
setMode(int mode)
The "MoveAction" can operate on different modes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MODE_MOVE
public static final int MODE_CLOSE
public final java.awt.Point location
public LayeredMap displayMap
public LayeredMap gameMap
public final Registry<Item> objectRegistry
public final java.util.ArrayList<Item> inventory
| Constructor Detail |
|---|
public Player(int playerX,
int playerY)
| Method Detail |
|---|
public int getMode()
public void setMode(int mode)
mode - The mode to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||