All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class key.commands.DirectedBroadcast

java.lang.Object
   |
   +----key.Atom
           |
           +----key.Command
                   |
                   +----key.commands.Broadcast
                           |
                           +----key.commands.DirectedBroadcast

public class DirectedBroadcast
extends Broadcast
implements Repeatable

Variable Index

 o targetCode

Constructor Index

 o DirectedBroadcast()

Method Index

 o cause(DirectedBroadcast)
Used mainly so that whisper can call and optimised cause() method in DirectedBroadcast such that it doesn't do a double splash.
 o execute(Player, String, Atom)
 o limitation(Player)
Used mainly so that whisper can override it to make it the players location - might speed up matching a little
 o run(Player, StringTokenizer, Repeated, Command, InteractiveConnection, Flags)
 o run(Player, StringTokenizer, String, ModalCommand, InteractiveConnection, Flags)
If this method is not overridden, it calls the others.

Variables

 o targetCode
 public static final Character targetCode

Constructors

 o DirectedBroadcast
 public DirectedBroadcast()

Methods

 o limitation
 protected Scape limitation(Player p)
Used mainly so that whisper can override it to make it the players location - might speed up matching a little

 o run
 public void run(Player p,
                 StringTokenizer args,
                 String fullLine,
                 ModalCommand caller,
                 InteractiveConnection ic,
                 Flags flags) throws IOException
If this method is not overridden, it calls the others.

Overrides:
run in class Broadcast
 o execute
 protected void execute(Player p,
                        String message,
                        Atom t)
 o cause
 protected void cause(DirectedBroadcast e)
Used mainly so that whisper can call and optimised cause() method in DirectedBroadcast such that it doesn't do a double splash. (In whisper, we can guarantee that if you splash the room, you've got everyone you want)

 o run
 public void run(Player p,
                 StringTokenizer args,
                 Repeated r,
                 Command caller,
                 InteractiveConnection ic,
                 Flags flags) throws IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index