Examples of notifyPlayerInfoChange()


Examples of net.socialgamer.cah.data.Game.notifyPlayerInfoChange()

      // for now only admins can change scores.  could possibly extend this to let the host do it,
      // provided it's for a player in the same game and it does a gamewide announcement.
      try {
        final int offset = Integer.parseInt(args[1]);
        player.increaseScore(offset);
        game.notifyPlayerInfoChange(player);
      } catch (final NumberFormatException e) {
        return error(ErrorCode.BAD_REQUEST);
      }
    }
    data.put(AjaxResponse.PLAYER_INFO, game.getPlayerInfo(player));
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.