Package games.stendhal.server.events
Class TradeStateChangeEvent
java.lang.Object
marauroa.common.game.Attributes
marauroa.common.game.SlotOwner
marauroa.common.game.RPEvent
games.stendhal.server.events.TradeStateChangeEvent
- All Implemented Interfaces:
Cloneable
,Iterable<String>
,Serializable
The state of a trade has changed
- Author:
- hendrik
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTradeStateChangeEvent(int partnerId, TradeState userTradeState, TradeState partnerTradeState)
Creates a new trade state change event. -
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
-
TradeStateChangeEvent
public TradeStateChangeEvent(int partnerId, TradeState userTradeState, TradeState partnerTradeState)Creates a new trade state change event.- Parameters:
partnerId
- id of partneruserTradeState
- my state of the tradepartnerTradeState
- the state of the partner
-
-
Method Details
-
generateRPClass
public static void generateRPClass()Creates the rpclass.
-