Java Universal Role Playing Engine Version 0.3.9

jurpe.dungeon.crawler
Class HexMapCommand

java.lang.Object
  extended by jurpe.dungeon.crawler.HexMapCommand

public class HexMapCommand
extends java.lang.Object

A command issued by the player in the HexMap control


Constructor Summary
HexMapCommand(Direction dir)
          Constructor.
HexMapCommand(Direction dir, InstructionByKey ins)
          Constructor
HexMapCommand(InstructionByKey ins)
          Constructor
 
Method Summary
 Direction getDirection()
          Get the Direction to move in HexMap
 InstructionByKey getInstruction()
          Get the Instruction associated to the command
 java.lang.String toString()
          To string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HexMapCommand

public HexMapCommand(Direction dir,
                     InstructionByKey ins)
Constructor

Parameters:
dir - Direction to move in HexMap
ins - Instruction associated to the command

HexMapCommand

public HexMapCommand(Direction dir)
Constructor.

Parameters:
dir - Direction to move in HexMap

HexMapCommand

public HexMapCommand(InstructionByKey ins)
Constructor

Parameters:
ins - Instruction associated to the command
Method Detail

getInstruction

public InstructionByKey getInstruction()
Get the Instruction associated to the command

Returns:
Instruction associated to the command

getDirection

public Direction getDirection()
Get the Direction to move in HexMap

Returns:
Direction to move in HexMap

toString

public java.lang.String toString()
To string

Overrides:
toString in class java.lang.Object

Java Universal Role Playing Engine Version 0.3.9

Copyright ? 2010 http://jurpe.sourceforge.net/ All Rights Reserved.