|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.properties.PList wyvern.kernel.maps.MapObject wyvern.lib.classes.StaticObject wyvern.lib.classes.construct.EmoteRoom
An object you can put in a map to make the map an Emote Room. Players will be able to emote while in the map.
Field Summary |
Fields inherited from class wyvern.kernel.maps.MapObject |
IN_MAP_EDITOR, listenerList_ |
Fields inherited from class wyvern.kernel.properties.PList |
readOnly_ |
Fields inherited from interface wyvern.lib.PropertyList |
PROPERTY_PACKAGE |
Constructor Summary | |
EmoteRoom()
|
Method Summary | |
CommandEvent |
createEvent(CommandEvent initial)
Creates the event. |
boolean |
execute(CommandEvent event)
Executes the event. |
Rectangle |
getBounds()
Returns the area covered by the emote room. |
void |
initialize()
Initializes the object's default properties. |
boolean |
knowsCommand(java.lang.String command)
Handles the "emote" command. |
void |
setMap(GameMap map,
int x,
int y)
Puts the room in the map. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EmoteRoom()
Method Detail |
public void initialize()
GameObject
initialize
in interface GameObject
initialize
in class StaticObject
public void setMap(GameMap map, int x, int y)
setMap
in interface GameObject
setMap
in class MapObject
map
- the map to put us inx
- the x-coordinate of our upper-left cornery
- the y-coordinate of our upper-left cornerpublic Rectangle getBounds()
getBounds
in interface GameObject
getBounds
in class MapObject
public boolean knowsCommand(java.lang.String command)
knowsCommand
in interface Command
command
- the entire command string, including arguments
public CommandEvent createEvent(CommandEvent initial)
createEvent
in interface Command
initial
- a "blank" CommandEvent containing only the
command text and the agent who's performing the command. This
initial event is created by the originator of the event (e.g.
the AI or player's command preprocessor).
public boolean execute(CommandEvent event)
execute
in interface Command
event
- the CommandEvent to execute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |