Package wzhybridbots.tools.actions

Examples of wzhybridbots.tools.actions.ActionTargetPlayer


   */
  protected void sendCommand ( ASConnection connection, ActionTarget target, String command ) {
    // Iterate through the targets and send the command
    for ( Iterator iter = target.iterator() ; iter.hasNext() ; ) {
      try {
        ActionTargetPlayer player = (ActionTargetPlayer)iter.next();
     
        // Calls the command
        connection.sendPrivateMessage( player.getPlayerName(), command );
      }
      catch ( ClassCastException cce ) {
        // This shouldn't happen since the iterator
        // returns object of type ActionTargetPlayer
      }
View Full Code Here


   */
  protected void sendCommand ( ASConnection connection, ActionTarget target, String command ) {
    // Iterate through the targets and send the command
    for ( Iterator iter = target.iterator() ; iter.hasNext() ; ) {
      try {
        ActionTargetPlayer player = (ActionTargetPlayer)iter.next();
     
        // Calls the command
        connection.sendPrivateMessage( player.getPlayerName(), command );
      }
      catch ( ClassCastException cce ) {
        // This shouldn't happen since the iterator
        // returns object of type ActionTargetPlayer
      }
View Full Code Here

TOP

Related Classes of wzhybridbots.tools.actions.ActionTargetPlayer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.