jurpe.system.commands
Class CreationCommands

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

public class CreationCommands
extends GenericCommands

Creation related commands.

See Also:
CoreCommands

Constructor Summary
CreationCommands()
           
 
Method Summary
static BasicItem generateItem(ItemValueType value, RandomNames names)
          Creates a random generated item (money or other items).
static Monster generateMonster(int value, RandomNames names)
          Creates a random monster, with a random name.
static PCharacter generatePC(CharacterAttributes ca, Skills availableSkills)
          Creation of a new Playing Character
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreationCommands

public CreationCommands()
Method Detail

generatePC

public static PCharacter generatePC(CharacterAttributes ca,
                                    Skills availableSkills)
Creation of a new Playing Character

Parameters:
ca - Character Attributes
availableSkills - Available Skills
Returns:
newly created Playing Character
See Also:
Skills

generateMonster

public static Monster generateMonster(int value,
                                      RandomNames names)
Creates a random monster, with a random name.

Parameters:
value - total starting points assigned to the new character
names - random names available
Returns:
newly generated monster
See Also:
RandomNames

generateItem

public static BasicItem generateItem(ItemValueType value,
                                     RandomNames names)
                              throws JurpeException
Creates a random generated item (money or other items). This can be useful to fill a treasure chest or to generate lootables in the dungeon. The creation procedure is the following: a die is thrown, and that determines if the object is a Bag of Money, a Shield, an Item, an Armor. Then the object is created and returnd

Parameters:
value - Value of the item to create
Returns:
A newly created item
Throws:
JurpeException

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