|
||||||||||
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.construct.Switch wyvern.lib.classes.construct.ButtonSwitch wyvern.lib.classes.construct.SmallButton
A button that a monster or player will activate when standing on it.
Field Summary | |
boolean |
activated_
|
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 | |
SmallButton()
|
Method Summary | |
void |
activate()
Activates the targets. |
void |
deactivate()
Deactivates the targets. |
void |
initialize()
Initializes the object's default properties. |
void |
objectAdded(GameMap map,
int x,
int y,
GameObject obj)
Notification that an object was added to the map. |
void |
objectRemoved(GameMap map,
int x,
int y,
GameObject obj)
Notification that an object was removed from the map. |
void |
remove()
Removes from the map. |
void |
setMap(GameMap map,
int x,
int y)
When the button is set in the map, registers with the map to be notified when objects are added to or removed from the map. |
Methods inherited from class wyvern.lib.classes.construct.Switch |
getTargets, toggleAllGates, toggleGate, toggleImage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public boolean activated_
Constructor Detail |
public SmallButton()
Method Detail |
public void initialize()
GameObject
initialize
in interface GameObject
initialize
in class ButtonSwitch
public void setMap(GameMap map, int x, int y)
setMap
in interface GameObject
setMap
in class MapObject
public void remove()
remove
in interface GameObject
remove
in class MapObject
public void objectAdded(GameMap map, int x, int y, GameObject obj)
objectAdded
in interface MapAddRemoveListener
map
- the map calling this methodx
- the map x location where the object was addedy
- the map y location where the object was addedobj
- the GameObject being added.public void objectRemoved(GameMap map, int x, int y, GameObject obj)
objectRemoved
in interface MapAddRemoveListener
map
- the map calling this methodx
- the map x location where the object reference was removedy
- the map y location where the object reference was removedobj
- the GameObject reference being removed from this locationpublic void activate()
activate
in class ButtonSwitch
public void deactivate()
deactivate
in class ButtonSwitch
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |