Package mage.interfaces.callback

Examples of mage.interfaces.callback.ClientCallback


    public boolean init() {
        if (!killed) {
            User user = UserManager.getInstance().getUser(userId);
            if (user != null) {
                user.fireCallback(new ClientCallback("tournamentInit", tournament.getId(), getTournamentView()));
                return true;
            }
        }
        return false;
    }
View Full Code Here


    public void update() {
        if (!killed) {
            User user = UserManager.getInstance().getUser(userId);
            if (user != null) {
                user.fireCallback(new ClientCallback("tournamentUpdate", tournament.getId(), getTournamentView()));
            }
        }
    }
View Full Code Here

    public void gameOver(final String message) {
        if (!killed) {
            User user = UserManager.getInstance().getUser(userId);
            if (user != null) {
                user.fireCallback(new ClientCallback("tournamentOver", tournament.getId(), message));
            }
        }
    }
View Full Code Here

TOP

Related Classes of mage.interfaces.callback.ClientCallback

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.