|
OGS Java API Spec | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--ogs.support.Object
|
+--ogs.core.Entity
|
+--ogs.core.Creature
A creature is a living entity. A living entity is defined as an
animate and/or sentient entity. The Creature class is
an abstract base class that represents the common characteristics
shared by all creatures.
| Field Summary | |
static int |
BURROW
An integer constant representing modes of movement such as burrowing through earth. |
static int |
CLIMB
An integer constant representing modes of movement such as climbing or swinging. |
static int |
FLY
An integer constant representing modes of movement such as flying through air. |
static int |
SWIM
An integer constant representing modes of movement such as swimming through water. |
static int |
WALK
An integer constant representing modes of movement such as walking, running, or crawling. |
| Fields inherited from class ogs.core.Entity |
currentHealth, defense, maximumHealth, size, weight |
| Fields inherited from class ogs.support.Object |
listeners |
| Constructor Summary | |
protected |
Creature()
Create a new creature. |
| Method Summary | |
void |
addFeat(Feat feat)
Add a feat to this creature. |
void |
addSkill(Skill skill)
Add a skill to this creature. |
Abilities |
getAbilities()
Determine the ability scores for this creature. |
Collection |
getBody()
Determine the body parts that compose the body of this creature. |
Collection |
getFeats()
Determine the current list of feats. |
Modifiers |
getInitiative()
Determine the initiative modifiers for this creature. |
Saves |
getSaves()
Determine the saving throw modifiers for this creature. |
Collection |
getSkills()
Determine the current skills of this creature. |
double |
getSpeed(int whichOne)
Determine the speed (movement rate) of this creature. |
void |
removeFeat(Feat feat)
Remove a feat from this creature. |
void |
removeSkill(Skill skill)
Remove a skill from this creature. |
void |
setSpeed(int whichOne,
double speed)
Change the speed (movement rate) for this creature. |
| Methods inherited from class ogs.core.Entity |
getCurrentHealth, getDefense, getMaximumHealth, getSize, getWeight, setCurrentHealth, setMaximumHealth, setWeight |
| 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 |
| Field Detail |
public static final int WALK
public static final int CLIMB
public static final int SWIM
public static final int FLY
public static final int BURROW
| Constructor Detail |
protected Creature()
| Method Detail |
public Abilities getAbilities()
public Saves getSaves()
public double getSpeed(int whichOne)
whichOne - One of the five speed constants: WALK, CLIMB,
FLY, SWIM, BURROW.
public void setSpeed(int whichOne,
double speed)
whichOne - One of the five speed constants: WALK, CLIMB,
FLY, SWIM, BURROW.speed - Movement rate.public Modifiers getInitiative()
public Collection getSkills()
public void addSkill(Skill skill)
skill - new skillpublic void removeSkill(Skill skill)
skill - old skilpublic Collection getFeats()
public void addFeat(Feat feat)
feat - new featpublic void removeFeat(Feat feat)
feat - old featpublic Collection getBody()
|
OGS Java API Spec | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||