|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IntercomListener
Definition of an actor interested in receiving notifications about other mobiles from the other connected clients.
Method Summary | |
---|---|
void |
attach()
Detach the listener from the communication network. |
void |
detach()
Attach the listener to the communication network. |
void |
onChangedClothes(Mobile wearingMobile)
Receives the notification that the specified mobile has changed their clothes. |
void |
onEnteredRange(Mobile entered,
UOObject target)
Receives an update about a mobile, entered , which enters
another mobile's, target , range. |
void |
onItemDropped(Mobile droppingMobile,
Item item,
int targetSerialId,
int targetX,
int targetY,
int targetZ)
Receives the notification about an item being dropped. |
void |
onOtherMobileMovement(Mobile movingMobile)
Receives an update about another mobile's movement. |
void |
onOtherMobileSpeech(Mobile speaker,
MessageType type,
int hue,
int font,
String language,
String text)
Receives an update about another mobile's speech. |
Method Detail |
---|
void detach()
void attach()
void onOtherMobileMovement(Mobile movingMobile)
movingMobile
- the other, moving mobile
IntercomException
- in case of inter-client communication errorsvoid onEnteredRange(Mobile entered, UOObject target)
entered
, which enters
another mobile's, target
, range.
entered
- the mobile who has entered the target's rangetarget
- the mobile whose range is being entered
IntercomException
- in case of inter-client communication errorsvoid onOtherMobileSpeech(Mobile speaker, MessageType type, int hue, int font, String language, String text)
speaker
- the speaking mobiletype
- message typehue
- message colourfont
- message fontlanguage
- message languagetext
- message text
IntercomException
- in case of inter-client communication errorsvoid onItemDropped(Mobile droppingMobile, Item item, int targetSerialId, int targetX, int targetY, int targetZ)
droppingMobile
- mobile dropping the itemitem
- itemtargetSerialId
- target serial IDtargetX
- target XtargetY
- target YtargetZ
- target Zvoid onChangedClothes(Mobile wearingMobile)
wearingMobile
- the mobile changing their clothes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |