Package de.creepsmash.common.messages.server

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


      client.handleError(ErrorType.Error,
          "No such tower (tried to upgrade tower " + towerId + ")");
      return;
    }

    UpgradeTowerRoundMessage n = new UpgradeTowerRoundMessage();
    n.setRoundId(this.maxTick + IConstants.USER_ACTION_DELAY);
    n.setPlayerId(m.getClientId());
    n.setTowerId(towerId);
    this.getGame().sendAll(n);
  }
View Full Code Here


    } else if (StartGameResponseMessage.PATTERN.matcher(messageString)
        .matches()) {
      messageObject = new StartGameResponseMessage();
    } else if (UpgradeTowerRoundMessage.PATTERN.matcher(messageString)
        .matches()) {
      messageObject = new UpgradeTowerRoundMessage();
    } else if (KickedMessage.PATTERN.matcher(messageString).matches()) {
      messageObject = new KickedMessage();
    } else if (KickPlayerResponseMessage.PATTERN.matcher(messageString)
        .matches()) {
      messageObject = new KickPlayerResponseMessage();
View Full Code Here

      System.out.println(btrm.getRoundId() - roundId);
      }

    } else if (gm instanceof UpgradeTowerRoundMessage) {
      UpgradeTowerRoundMessage utrm = (UpgradeTowerRoundMessage) gm;
      Tower upgradeTower;
      // find the tower we want to upgrade
      for (Tower tower : towers) {
        if (tower.getId() == utrm.getTowerId() && tower.isReady()) {
          upgradeTower = tower;
          // set UpgradTime
          upgradeTower.setUpgradeTime((int) (utrm.getRoundId() - roundId));
          break;
        }
      }

    } else if (gm instanceof ChangeStrategyRoundMessage) {
View Full Code Here

TOP

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

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.