Package frontend.alphaspawn

Examples of frontend.alphaspawn.Player


    // Do some checkup on the string to be sure it is the answer
    // from the server and not some player message.
    int playerID = chatMsg.getPlayerID();
    String message = chatMsg.getMessage();
    ASArena arena = ASArena.getInstance();
    Player sender = arena.getPlayer( playerID );
   
    if ( sender != null ) {
      // A player sended the message
      // We are waiting for a message from the server...not a player
      return;
View Full Code Here


    // Checks if the player has specified a player name next to the command
    if ( !hasArgs ) { return; }

    // The player has specified a player name
    ASArena arena = ASArena.getInstance();
    Player player = arena.getFuzzyPlayer( args );

    if ( player == null ) {
      // The player was not found
      // Display a message to the player requesting a lag check
      this.objConnection.sendPrivateMessage( playerName, "Unable to reconize a player that sounds like '" + args + "'." );
      return;
    }
   
    // Set the target of the action taken
    ActionTarget target = new TargetPlayer( player.getName() );
    // Calls the server command that checks for lagging stats
    this.objServerCommands.checkLag( this.objConnection, target );
  }
View Full Code Here

TOP

Related Classes of frontend.alphaspawn.Player

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.