public abstract class AICharacter extends Object implements Character, Serializable
Character is the base for all AI
creatures (ie, Monsters and NPCs).| Constructor and Description |
|---|
AICharacter(int id,
String name)
Creates an instance of
AICharacter. |
| Modifier and Type | Method and Description |
|---|---|
int |
getID()
Returns this entity's identifier.
|
String |
getName()
Returns the name of this entity.
|
abstract void |
regenerate()
Resets the character's details and makes them ready to re-enter
a level.
|
abstract void |
run()
Called periodically to give this character a chance to do some
processing.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcollidedFrom, collidedInto, getStatistics, notifyStatsChanged, sendMessagepublic AICharacter(int id,
String name)
AICharacter.id - the character's identifiername - the character's namepublic int getID()
public String getName()
public abstract void run()
public abstract void regenerate()
Copyright © 2013. All Rights Reserved.