PageRenderTime 14ms CodeModel.GetById 7ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/src/packets/PlayerQuitCmd.java

http://inequity.googlecode.com/
Java | 32 lines | 21 code | 4 blank | 7 comment | 0 complexity | b4e2ee48e9fc9527ac349993d825e822 MD5 | raw file
 1package packets;
 2
 3import elements.Consts.Priorities;
 4import network.ClientController;
 5
 6/**
 7 *
 8 * @author Joel Garboden
 9 */
10public class PlayerQuitCmd extends Command
11{
12  /**
13   *
14   */
15  public PlayerQuitCmd()
16  {
17    this.priority = Priorities.TURN_UPDATE;
18  }
19
20  @Override
21  public boolean execCommand(ClientController controller)
22  {
23    controller.disconnect();
24    return true;
25  }
26
27  @Override
28  public String toString()
29  {
30    return "playerQuitCmd";
31  }
32}