rlgamekit.demo.walkaround
Class Player

java.lang.Object
  extended by rlgamekit.demo.walkaround.Player

public class Player
extends java.lang.Object

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

MODE_MOVE

public static final int MODE_MOVE
See Also:
Constant Field Values

MODE_CLOSE

public static final int MODE_CLOSE
See Also:
Constant Field Values

location

public final java.awt.Point location
Current location of the player


displayMap

public LayeredMap displayMap
The map data that is shown to the player (will not show hidden features or changed to "remembered" areas).


gameMap

public LayeredMap gameMap
The actual game map. All game functions should use this.


objectRegistry

public final Registry<Item> objectRegistry

inventory

public final java.util.ArrayList<Item> inventory
The players inventory

Constructor Detail

Player

public Player(int playerX,
              int playerY)
Method Detail

getMode

public int getMode()

setMode

public void setMode(int mode)
The "MoveAction" can operate on different modes. The modes will be set per player, since a player can have several move actions which all should be influenced ny the mode setting.

Parameters:
mode - The mode to set.