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)


Variable Index

 o 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.
 o loc
 o mainMessage
 o selfMessage

Constructor Index

 o Broadcast(Scape, Player, String, String)
Creates a new communication

Method Index

 o cause()
 o getMessage(Player)

Variables

 o loc
 protected Scape loc
 o mainMessage
 protected String mainMessage
 o selfMessage
 protected String selfMessage
 o 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.

Constructors

 o 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

Methods

 o getMessage
 public String getMessage(Player receiver)
Overrides:
getMessage in class Effect
 o cause
 public void cause()
Overrides:
cause in class Effect

All Packages  Class Hierarchy  This Package  Previous  Next  Index