PlayerQuitCmd.java :  » Game » inequity » packets » Java Open Source

Java Open Source » Game » inequity 
inequity » packets » PlayerQuitCmd.java
package packets;

import elements.Consts.Priorities;
import network.ClientController;

/**
 *
 * @author Joel Garboden
 */
public class PlayerQuitCmd extends Command
{
  public PlayerQuitCmd()
  {
    this.priority = Priorities.TURN_UPDATE;
  }

  @Override
  public boolean execCommand(ClientController controller)
  {
    controller.disconnect();
    return true;
  }

  @Override
  public String toString()
  {
    return "playerQuitCmd";
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.