|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.adom.jade.kernel.GUIDCarrier
de.adom.jade.kernel.DefaultActor
de.adom.jade.beings.Being
de.adom.jade.beings.PC
Implements all the code for the player character.
| Constructor Summary | |
|---|---|
PC(WorldMap map)
Creates the PC. |
|
| Method Summary | |
|---|---|
void |
doAct()
Allows the PC to execute an action. |
boolean |
enterLocation(Connection connection)
Enters the location at the current position of the being. |
java.lang.String |
getLogicalName()
Returns the logical name for tbis being. |
void |
inform(java.lang.String information)
Displays messages meant only for the PC. |
protected boolean |
isFirstPerson()
Determines whether messages originating from this being use first person singular or third person singular word form. |
protected boolean |
isVisibleToImpl(Being being)
Determines whether the PC currently is visible to the given being. |
java.lang.String |
you()
Returns a text describing this being as the actor. |
| Methods inherited from class de.adom.jade.kernel.DefaultActor |
|---|
actAgainAfter, getActionPoint, setActionPoint |
| Methods inherited from class de.adom.jade.kernel.GUIDCarrier |
|---|
getGUID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PC(WorldMap map)
worldMap - the world map which contains the home
town of the PC| Method Detail |
|---|
public void doAct()
doAct in class Beingpublic java.lang.String getLogicalName()
pc.race.maxprofession, where race is the
lower case name of the PC race (spaces are replaced by underscores) and
maxprofession is the name of the highest level profession of the PC (if two
professions have the same level, the first one after lexicographical sorting will
be used). The profession name is converted in the same way as the race name.
getLogicalName in class Beingprotected boolean isFirstPerson()
isFirstPerson in class Beingtruepublic java.lang.String you()
you in class Beingprotected boolean isVisibleToImpl(Being being)
isVisibleToImpl in class Beingbeing - the being that tries to discern the PC
public void inform(java.lang.String information)
inform in class Beinginformation - the personal information to displaypublic boolean enterLocation(Connection connection)
Being
enterLocation in class Beingconnection - the connection by which to enter the next location
Being.enterLocation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||