jurpe.containers
Class Skills

java.lang.Object
  extended by jurpe.containers.XMLCollection
      extended by jurpe.containers.Skills
All Implemented Interfaces:
java.io.Serializable

public class Skills
extends XMLCollection
implements java.io.Serializable

Skills available to this game, read from abilita.xml. Is a XMLCollection. Divides between mental and physical skills.

Author:
Alessio Saltarin
See Also:
Serialized Form

Constructor Summary
Skills()
          Constructor
 
Method Summary
 Skill forName(java.lang.String name)
          Get an Skill (skill) object searching for its name.
 java.lang.Object[] getMental()
          Get Mental Skills available.
 java.lang.Object[] getPhysical()
          Get Physical Skills available
 java.util.AbstractList<Skill> getWeapon()
          Get Weapon Physical Skills
 
Methods inherited from class jurpe.containers.XMLCollection
size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Skills

public Skills()
Constructor

Method Detail

forName

public Skill forName(java.lang.String name)
Get an Skill (skill) object searching for its name.

Parameters:
name - Skill name to get
Returns:
Corresponding Skill Object
See Also:
Skill

getMental

public java.lang.Object[] getMental()
Get Mental Skills available.

Returns:
array of Mental Skills

getPhysical

public java.lang.Object[] getPhysical()
Get Physical Skills available

Returns:
array of Physical Skills

getWeapon

public java.util.AbstractList<Skill> getWeapon()
Get Weapon Physical Skills

Returns:
Array of physical skills for weapons

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