| 1234567891011121314151617181920212223242526272829303132 |
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package bswfx.handler;
- import org.json.JSONObject;
- import rsx.BomberStudentHandler;
- import bswfx.BomberStudent;
- /**
- *
- * @author loquicom
- */
- public class HandlerPlayerQuit implements BomberStudentHandler{
- @Override
- public boolean handle(JSONObject json) {
- //Verif param
- if(!( json.has("player") )){
- return false;
- }
- //Retire le joueur
- if(BomberStudent.game.quit(json.getInt("player"))){
- BomberStudent.updateWindow();
- return true;
- }
- return false;
- }
-
- }
|