jurpe.combat
Class Combat_Attack

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

public class Combat_Attack
extends java.lang.Object
implements ICommand

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

Author:
Alessio Saltarin
See Also:
Combat, DualCombat

Constructor Summary
Combat_Attack(ICombat xCombat)
          Functor for Attack 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_Attack

public Combat_Attack(ICombat xCombat)
Functor for Attack Command

Parameters:
xCombat - Combat class in which method Attack 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