Package de.creepsmash.common.messages.server

Examples of de.creepsmash.common.messages.server.RoundMessage


   * Advance the maxTick counter and send a "ROUND n OK" message to all
   * players.
   */
  public void tick() {
    if (this.maxTick % IConstants.USER_ACTION_DELAY == 0) {
      RoundMessage message = new RoundMessage();
      message.setRoundId(this.maxTick + IConstants.USER_ACTION_DELAY);
      this.getGame().sendAll(message);
    }
    this.maxTick += 1;
  }
View Full Code Here


      messageObject = new PlayersMessage();
    } else if (RegistrationResponseMessage.PATTERN.matcher(
        messageString).matches()) {
      messageObject = new RegistrationResponseMessage();
    } else if (RoundMessage.PATTERN.matcher(messageString).matches()) {
      messageObject = new RoundMessage();
    } else if (SellTowerRoundMessage.PATTERN.matcher(messageString)
        .matches()) {
      messageObject = new SellTowerRoundMessage();
    }else if (ChangeStrategyRoundMessage.PATTERN.matcher(messageString)
        .matches()) {
View Full Code Here

TOP

Related Classes of de.creepsmash.common.messages.server.RoundMessage

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.