jurpe.combat
Class Combat_Move

java.lang.Object
  extended by jurpe.combat.Combat_Move
All Implemented Interfaces:
ICommand

public class Combat_Move
extends java.lang.Object
implements ICommand

Utility class for Command Design Pattern. Provides a functor for combat.move()

Author:
Alessio Saltarin
See Also:
Combat, DualCombat

Constructor Summary
Combat_Move(ICombat xCombat)
          Functor for Move Command
 
Method Summary
 boolean execute()
          Execute this command
 java.lang.String getLog()
          Get log generated by command
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Combat_Move

public Combat_Move(ICombat xCombat)
Functor for Move Command

Parameters:
xCombat - Combat class in which method AllOutAttack is defined
Method Detail

execute

public boolean execute()
Execute this command

Specified by:
execute in interface ICommand
Returns:
boolean depending on context

getLog

public java.lang.String getLog()
Get log generated by command

Specified by:
getLog in interface ICommand
Returns:
log generated by command

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