Java Universal Role Playing Engine Version 0.3.9

jurpe.combat
Class Attack

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

public class Attack
extends java.lang.Object
implements ICommand

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

See Also:
ICombat, DualCombat

Constructor Summary
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

Attack

public 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

Java Universal Role Playing Engine Version 0.3.9

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