All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class key.effect.DirectedBroadcast

java.lang.Object
   |
   +----key.Effect
           |
           +----key.effect.Communication
                   |
                   +----key.effect.Broadcast
                           |
                           +----key.effect.DirectedBroadcast

public class DirectedBroadcast
extends Broadcast
A communication effect that goes to an entire medium, such as a room or channel. (Technically, it goes to any scape)


Constructor Index

 o DirectedBroadcast(Scape, Player, Atom, String, String, String, Character)
Creates a new communication

Method Index

 o cause()
Directly splashes the location, with the exception of those in the directedAt, who are splashed directly themselves
 o causeExclusive()
Doesn't splash the directedAt people directly, instead, this routine is used when we can guarantee that the players will be in the location scape.
 o getMessage(Player)

Constructors

 o DirectedBroadcast
 public DirectedBroadcast(Scape location,
                          Player from,
                          Atom to,
                          String main,
                          String self,
                          String other,
                          Character tCode)
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
other - the UNPARSED other message

Methods

 o getMessage
 public String getMessage(Player receiver)
Overrides:
getMessage in class Broadcast
 o cause
 public void cause()
Directly splashes the location, with the exception of those in the directedAt, who are splashed directly themselves

Overrides:
cause in class Broadcast
 o causeExclusive
 public void causeExclusive()
Doesn't splash the directedAt people directly, instead, this routine is used when we can guarantee that the players will be in the location scape.


All Packages  Class Hierarchy  This Package  Previous  Next  Index