jurpe.system.commands
Class CombatCommands

java.lang.Object
  extended by jurpe.system.commands.GenericCommands
      extended by jurpe.system.commands.CombatCommands

public class CombatCommands
extends GenericCommands

Combat related commands.

See Also:
CoreCommands

Constructor Summary
CombatCommands()
           
 
Method Summary
static boolean continueCombat(DualCombat cbt)
          After having initialized Combat and TurnTable objects, this method return false until combat is ended.
static DualCombat enterCombat(PCharacter fighter, Monster monsterToFight)
          Starts a combat session.
static void monsterDefetead(DualCombat cbt)
          Process human victory over the monster (loot, experience points and so on...)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CombatCommands

public CombatCommands()
Method Detail

enterCombat

public static DualCombat enterCombat(PCharacter fighter,
                                     Monster monsterToFight)
                              throws JurpeException
Starts a combat session. Updates TurnTable

Parameters:
fighter - PCharacter who is initiating the combat
monsterToFight - Monster to fight
Returns:
Initialized DualCombat object
Throws:
JurpeException
See Also:
DualCombat

continueCombat

public static boolean continueCombat(DualCombat cbt)
After having initialized Combat and TurnTable objects, this method return false until combat is ended.

Parameters:
cbt - Dual Combat that's taking place
Returns:
true, if next player is human (control is returned to GUI) or combat is ended

monsterDefetead

public static void monsterDefetead(DualCombat cbt)
Process human victory over the monster (loot, experience points and so on...)

Parameters:
cbt - Handle to Dual Combat

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