/src/packets/PlayerQuitCmd.java
http://inequity.googlecode.com/ · Java · 32 lines · 21 code · 4 blank · 7 comment · 0 complexity · b4e2ee48e9fc9527ac349993d825e822 MD5 · raw file
- 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";
- }
- }