jurpe.combat
Interface ICombat

All Known Implementing Classes:
DualCombat

public interface ICombat

Combat commands available. Implement every command with Functor Design Pattern. IE: move() function must be implemented as a Combat_Move.class

Author:
Alessio Saltarin
See Also:
DualCombat, JurpeFrame_Combat

Field Summary
static java.lang.String[] AVAILABLE_COMBAT_COMMANDS
          Returns all available commands as an array of Strings
static int CM_AIM
           
static int CM_ALLOATT
           
static int CM_ALLODEF
           
static int CM_ATTAK
           
static int CM_MOVE
           
static int CM_RDYWPN
           
static int CM_RELOAD
           
 
Method Summary
 boolean aim()
          Aim a ranged weapon
 boolean allOutAttack()
          Make a special, all out attack
 boolean allOutDefense()
          Make a special, all out defense
 boolean attack()
          Make an attack
 java.lang.String log()
          Get log of actions.
 boolean move()
          Make a move and/or escape.
 boolean readyWeapon()
          Ready an unbalanced weapon.
 boolean reload()
          Reload weapon
 

Field Detail

CM_MOVE

static final int CM_MOVE
See Also:
Constant Field Values

CM_RDYWPN

static final int CM_RDYWPN
See Also:
Constant Field Values

CM_RELOAD

static final int CM_RELOAD
See Also:
Constant Field Values

CM_AIM

static final int CM_AIM
See Also:
Constant Field Values

CM_ATTAK

static final int CM_ATTAK
See Also:
Constant Field Values

CM_ALLOATT

static final int CM_ALLOATT
See Also:
Constant Field Values

CM_ALLODEF

static final int CM_ALLODEF
See Also:
Constant Field Values

AVAILABLE_COMBAT_COMMANDS

static final java.lang.String[] AVAILABLE_COMBAT_COMMANDS
Returns all available commands as an array of Strings

Method Detail

move

boolean move()
Make a move and/or escape.

Returns:
boolean value used for utility purpose

readyWeapon

boolean readyWeapon()
Ready an unbalanced weapon.

Returns:
boolean value used for utility purpose

reload

boolean reload()
Reload weapon

Returns:
boolean value used for utility purpose

aim

boolean aim()
Aim a ranged weapon

Returns:
boolean value used for utility purpose

attack

boolean attack()
Make an attack

Returns:
boolean value used for utility purpose

allOutAttack

boolean allOutAttack()
Make a special, all out attack

Returns:
boolean value used for utility purpose

allOutDefense

boolean allOutDefense()
Make a special, all out defense

Returns:
boolean value used for utility purpose

log

java.lang.String log()
Get log of actions.

Returns:
String log of actions, LINEFEED separated.

Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net