|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.juoserver.controller.Intercom
public class Intercom
This class acts as a mediatior between controllers, providing the means to coordinate them with each other thus implementing inter-client communication.
Controllers are notified of what's happening in the other controllers according to the observer pattern.
| Constructor Summary | |
|---|---|
Intercom()
|
|
| Method Summary | |
|---|---|
static void |
addIntercomListener(IntercomListener listener)
|
static void |
notifyChangedClothes(Mobile wearingMobile)
Notifies that the specified mobile has changed their clothes. |
static void |
notifyEnteredRange(Mobile enteredMobile,
UOObject targetMobile)
Notifies listeners that a mobile, enteredMobile, has entered
another mobile's, targetMobile, range. |
static void |
notifyItemDropped(Mobile droppingMobile,
Item item,
int targetSerialId,
int targetX,
int targetY,
int targetZ)
Notifies listeners about an item being dropped. |
static void |
notifyMovement(Mobile movingMobile)
Notifies listeners about a mobile's movement. |
static void |
notifySpeech(Mobile speaker,
MessageType type,
int hue,
int font,
String language,
String text)
Notifies listeners about a mobile's speech. |
static void |
removeIntercomListener(IntercomListener listener)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Intercom()
| Method Detail |
|---|
public static void addIntercomListener(IntercomListener listener)
public static void removeIntercomListener(IntercomListener listener)
public static void notifyMovement(Mobile movingMobile)
movingMobile - the moving mobile
IntercomException - in case of inter-client communication errors
public static void notifyEnteredRange(Mobile enteredMobile,
UOObject targetMobile)
enteredMobile, has entered
another mobile's, targetMobile, range.
enteredMobile - the mobile who has entered the target's rangetargetMobile - the mobile whose range is being entered
IntercomException - in case of inter-client communication errors
public static void notifySpeech(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 errors
public static void notifyItemDropped(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 Zpublic static void notifyChangedClothes(Mobile wearingMobile)
wearingMobile - the mobile changing their clothes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||