Package games.stendhal.server.events
Class GlobalVisualEffectEvent
java.lang.Object
marauroa.common.game.Attributes
marauroa.common.game.SlotOwner
marauroa.common.game.RPEvent
games.stendhal.server.events.GlobalVisualEffectEvent
- All Implemented Interfaces:
Cloneable
,Iterable<String>
,Serializable
An event that tells the client to display a visual effect that affects the
entire game screen.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGlobalVisualEffectEvent(String effectName, int duration)
Create a new GlobalVisualEffectEvent.GlobalVisualEffectEvent(String effectName, int duration, int strength)
Create a new GlobalVisualEffectEvent with a specified strength. -
Method Summary
Methods inherited from class marauroa.common.game.RPEvent
clone, equals, fill, getName, hashCode, readObject, setOwner, toString, writeObject, writeObject
Methods inherited from class marauroa.common.game.SlotOwner
addSlot, addSlot, deserializeRPSlots, fill, getSlot, hasSlot, removeSlot, serializeRPSlots, slots, slotsIterator, writeToJson
Methods inherited from class marauroa.common.game.Attributes
add, applyDifferences, clearVisible, get, getBool, getDouble, getInt, getList, getLong, getRPClass, has, instanceOf, isEmpty, iterator, put, put, put, put, put, readFromMap, remove, resetAddedAndDeletedAttributes, setAddedAttributes, setDeletedAttributes, setRPClass, setRPClass, size, toAttributeString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
GlobalVisualEffectEvent
Create a new GlobalVisualEffectEvent.- Parameters:
effectName
- name of the effectduration
- Duration in milliseconds. The exact interpretation is effect dependent
-
GlobalVisualEffectEvent
Create a new GlobalVisualEffectEvent with a specified strength.- Parameters:
effectName
- name of the effectduration
- Duration in milliseconds. The exact interpretation is effect dependentstrength
- strength of the effect. The meaning is effect dependent
-
-
Method Details
-
generateRPClass
public static void generateRPClass()Creates the rpclass.
-