public interface Character
Character interface. All interactive things
in a game (players, NPCs, and monsters) are
Characters.| Modifier and Type | Method and Description |
|---|---|
LevelBoard.ActionResult |
collidedFrom(Character character)
Called when the given character collides with us.
|
boolean |
collidedInto(Character character)
Called when you collide with the character.
|
int |
getID()
Returns this entity's identifier.
|
String |
getName()
Returns the name of this entity.
|
CharacterStats |
getStatistics()
Returns the statistics associated with this character.
|
void |
notifyStatsChanged()
This method tells the character that their stats have changed.
|
void |
sendMessage(String message)
Sends a text message to the character's manager.
|
int getID()
String getName()
CharacterStats getStatistics()
void notifyStatsChanged()
LevelBoard.ActionResult collidedFrom(Character character)
collidedInto method.character - the character that collided with usboolean collidedInto(Character character)
character - the character that we collided withvoid sendMessage(String message)
message - the message to sendCopyright © 2013. All Rights Reserved.