|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.rico.adventure.entity.AbstractEntity
de.rico.adventure.entity.character.AbstractCharacter
public abstract class AbstractCharacter
This is the abstract base class for all the characters in the game.
Constructor Summary | |
---|---|
AbstractCharacter(AbstractMesh mesh)
Creates a new character with the specified mesh to use as a model. |
Method Summary | |
---|---|
Room |
getRoom()
Returns the characters current room or null ,
if none can be reference to the character. |
void |
say(java.lang.String text)
Displays the specified text as a queued Say action. |
void |
say(java.lang.String text,
java.lang.String pathSound)
Displays the specified text as a queued Say action. |
void |
setRoom(Room room)
Sets the characters current room. |
Methods inherited from class de.rico.adventure.entity.AbstractEntity |
---|
destroy, drawScreenName, getMesh, getScreenName, getScriptId, isEnabled, setEnabled, setScreenName, setScriptId, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractCharacter(AbstractMesh mesh)
mesh
- mesh to use as a modelMethod Detail |
---|
public void setRoom(Room room)
room
- room the character is located inpublic Room getRoom()
null
,
if none can be reference to the character.
null
public void say(java.lang.String text)
text
- text to saypublic void say(java.lang.String text, java.lang.String pathSound)
text
- text to saypathSound
- path to sound file for the sentence
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |