QuitTask.java
jmud-0.11/src/QuitTask.java · 392 B
From the archive jmud-0_11.tgz
Download the archive « Back to the archive contents
class QuitTask extends Task {
QuitTask(Client cli) {
super(cli);
}
void execute() {
Char ch = theClient.getChar();
if (ch.isFighting())
ch.die();
ch.getPlace().action("$p deixou a sala.", true, ch);
theWorld.extractChar(ch); // usado em Char's por outros métodos/classes
theWorld.removePlayer(ch); // usado apenas aqui
theManager.quitDone();
}
}