|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface shared by objects that can broadcast a message to everyone in the local area. All GameObjects can do this, and CommandEvents can as well. It's useful for issuing general messages to players, but also for wiz debugging.
| Method Summary | |
java.util.List |
broadcast(java.lang.String msg)
Broadcasts a message to every player in sight of this object, not including the player who initiated it (if this is a player). |
java.util.List |
broadcast(java.lang.String msg,
byte style)
Broadcasts a message to every player in earshot of this object, not including the player who initiated it (if this is a player). |
java.util.List |
broadcast(java.lang.String msg,
Predicate p)
Sends the specified message to players in earshot of this object, not including the player who initiated it (if this is a player). |
java.util.List |
broadcast(java.lang.String msg,
Predicate p,
byte style)
Sends the specified message to player in sight of this object, not including the player who initiated it (if this is a player). |
java.util.List |
broadcast(java.lang.String msg,
Predicate p,
byte style,
int radius)
Sends the specified message to everyone in sight. |
| Method Detail |
public java.util.List broadcast(java.lang.String msg)
msg - the message to broadcast.
public java.util.List broadcast(java.lang.String msg,
Predicate p)
msg - the message to sendp - an optional predicate used to filter the recipients.
If p is false for a potential recipient, the message is not
delivered to that recipient.
public java.util.List broadcast(java.lang.String msg,
byte style)
msg - the message to broadcast.style - the RPCConstants.TextStyle to use
public java.util.List broadcast(java.lang.String msg,
Predicate p,
byte style)
msg - the message to sendp - an optional predicate used to filter the recipients.
If p is false for a potential recipient, the message is not
delivered to that recipient.style - the RPCConstants.TextStyle to use
public java.util.List broadcast(java.lang.String msg,
Predicate p,
byte style,
int radius)
msg - the message to sendp - an optional predicate used to filter the recipients.
If p is false for a potential recipient, the message is not
delivered to that recipient.style - the RPCConstants.TextStyle to useradius - the radius around the player to broadcast to.
Includes the player's location, so a radius of 7 would cover
their whole view.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||