All Packages Class Hierarchy This Package Previous Next Index
Class key.effect.Broadcast
java.lang.Object
|
+----key.Effect
|
+----key.effect.Communication
|
+----key.effect.Broadcast
- public class Broadcast
- extends Communication
A communication effect that goes to an entire
medium, such as a room or channel. (Technically,
it goes to any scape)
-
gotOriginator
- If it echos to the scape, it must always re-echo
to the originator - this boolean is set if the
originator is splashed, so if its still false
after all, then re-splash them.
-
loc
-
-
mainMessage
-
-
selfMessage
-
-
Broadcast(Scape, Player, String, String)
- Creates a new communication
-
cause()
-
-
getMessage(Player)
-
loc
protected Scape loc
mainMessage
protected String mainMessage
selfMessage
protected String selfMessage
gotOriginator
protected boolean gotOriginator
- If it echos to the scape, it must always re-echo
to the originator - this boolean is set if the
originator is splashed, so if its still false
after all, then re-splash them.
Broadcast
public Broadcast(Scape location,
Player from,
String main,
String self)
- Creates a new communication
- Parameters:
- from - the player who sent it
- location - where the local effect is to take place
- main - the message to show to everyone in the location scape
- self - the message to show to the player
getMessage
public String getMessage(Player receiver)
- Overrides:
- getMessage in class Effect
cause
public void cause()
- Overrides:
- cause in class Effect
All Packages Class Hierarchy This Package Previous Next Index