OGS Java API Spec

ogs.skills
Class Spot

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

public class Spot
extends Skill

A skill used primarily to detect creatures who are hiding.


Field Summary
 
Fields inherited from class ogs.support.Object
listeners
 
Constructor Summary
Spot()
          Create a new Spot skill.
 
Method Summary
 boolean applyArmorCheckPenalty()
          Determine if an armor check penalty applies when this skill is used.
 float getDistance()
          Determine the distance of the target from the spotter.
 int getKeyAbility()
          Determine the key ability of this type of skill.
 boolean isDistracted()
          Determine if the spotter is distracted.
 void setDistance(float distance)
          Change the distance of the target from the spotter.
 void setDistracted(boolean distracted)
          Change the distracted status of the spotter.
 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

Spot

public Spot()
Create a new Spot skill. The distance of the target to be spotted is within 10 feet and the spotter is not distrcted.

Method Detail

getKeyAbility

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

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

useUntrained

public boolean useUntrained()
Determine if this type of skill can be used untrained. The Spot 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. Spot skill checks have nothing to do with armor.

Specified by:
applyArmorCheckPenalty in class Skill
Returns:
False.

getDistance

public float getDistance()
Determine the distance of the target from the spotter.

Returns:
Distance of target from spotter.

setDistance

public void setDistance(float distance)
Change the distance of the target from the spotter. A -1 modifier is added to the skill check for every 10 feet of the target from the spotter.

Parameters:
distance - Distance of target from spotter.

isDistracted

public boolean isDistracted()
Determine if the spotter is distracted.

Returns:
True if the spotter is distracted.

setDistracted

public void setDistracted(boolean distracted)
Change the distracted status of the spotter. A -5 modifier is added to the skill check if the spotter is distracted. the spotter.

Parameters:
distracted - True if the spotter is distracted.

OGS Java API Spec