jurpe.characters
Class Innate

java.lang.Object
  extended by jurpe.characters.Innate
All Implemented Interfaces:
java.io.Serializable

public class Innate
extends java.lang.Object
implements java.io.Serializable

Base class for advantages/disadvantages/quirks. An innate may be: - recognized: Correctly apply related modifiers to character. or: - supported: a character may get that Innate, but will just show its description and no modifier will be applied. Innate will be read from an XML file. When contructed, if the Innate name corresponds to one

See Also:
Serialized Form

Constructor Summary
Innate(java.lang.String iName, java.lang.String iDescription, short iPoints)
          Construct a new Innate Ability, such as Advantage, Disadvantage, Quirk
 
Method Summary
 int compareTo(java.lang.Object rv)
          Comparison is made on names
 java.lang.String getDescription()
          Get Innate Ability description
 java.lang.String getName()
          Get Innate Ability name
 short getPoints()
          Get Character Points needed
 boolean isImplemented()
          Return true if this Innate has been implemented
 void setDescription(java.lang.String string)
           
 void setName(java.lang.String string)
           
 void setPoints(short s)
           
 java.lang.String toString()
          toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Innate

public Innate(java.lang.String iName,
              java.lang.String iDescription,
              short iPoints)
Construct a new Innate Ability, such as Advantage, Disadvantage, Quirk

Parameters:
iName - Name of Innate Ability
iDescription - Description of Innate Ability
iPoints - Character Points needed to have the Innate Ability (may be negative)
Method Detail

getName

public java.lang.String getName()
Get Innate Ability name

Returns:
Innate Ability name

getDescription

public java.lang.String getDescription()
Get Innate Ability description

Returns:
Innate Ability description

getPoints

public short getPoints()
Get Character Points needed

Returns:
character points needed

toString

public java.lang.String toString()
toString

Overrides:
toString in class java.lang.Object
Returns:
name of Innate

compareTo

public int compareTo(java.lang.Object rv)
Comparison is made on names

Parameters:
rv -
Returns:
1 if equal

isImplemented

public boolean isImplemented()
Return true if this Innate has been implemented

Returns:
True if this Innate has been implemented

setDescription

public void setDescription(java.lang.String string)
Parameters:
string -

setName

public void setName(java.lang.String string)
Parameters:
string -

setPoints

public void setPoints(short s)
Parameters:
s -

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