Examples of fireCallback()


Examples of mage.server.User.fireCallback()

    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

Examples of mage.server.User.fireCallback()

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

    public void gameOver(final String message) {
View Full Code Here

Examples of mage.server.User.fireCallback()

    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));
            }
        }
    }

    public void construct(int timeout) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.