OGS Java API Spec

ogs.skills
Class Diplomacy

java.lang.Object
  |
  +--ogs.support.Object
        |
        +--ogs.core.Feature
              |
              +--ogs.core.Skill
                    |
                    +--ogs.skills.Diplomacy
All Implemented Interfaces:
EventListener

public class Diplomacy
extends Skill

A skill used primarily to detect creatures who are hiding.


Field Summary
 
Fields inherited from class ogs.support.Object
listeners
 
Constructor Summary
Diplomacy()
          Create a new Diplomacy skill.
 
Method Summary
 boolean applyArmorCheckPenalty()
          Determine if an armor check penalty applies when this skill is used.
 int getKeyAbility()
          Determine the key ability of this type of skill.
 boolean useUntrained()
          Determine if this type of skill can be used untrained.
 
Methods inherited from class ogs.core.Skill
attachObject, getCurrentPoints, getCurrentRanks, getMaximumPoints, getMaximumPoints, getMaximumPointsLevel, getMaximumRanks, getModifiers, setCurrentPoints, setMaximumPoints
 
Methods inherited from class ogs.core.Feature
canAttach, canDetach, detachObject, getObject
 
Methods inherited from class ogs.support.Object
addListener, handleEvent, notifyListeners, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Diplomacy

public Diplomacy()
Create a new Diplomacy skill.

Method Detail

getKeyAbility

public int getKeyAbility()
Determine the key ability of this type of skill. The key ability of the Diplomacy skill is Charisma.

Specified by:
getKeyAbility in class Skill
Returns:
Charisma.class

useUntrained

public boolean useUntrained()
Determine if this type of skill can be used untrained. The Diplomacy skill can be be used untrained.

Specified by:
useUntrained in class Skill
Returns:
True.

applyArmorCheckPenalty

public boolean applyArmorCheckPenalty()
Determine if an armor check penalty applies when this skill is used. Diplomacy skill checks have nothing to do with armor.

Specified by:
applyArmorCheckPenalty in class Skill
Returns:
False.

OGS Java API Spec