Package de.creepsmash.common.messages.client

Examples of de.creepsmash.common.messages.client.BuildCreepMessage


  public synchronized boolean sendCreep(GameContext context,
      GamePanel gamepanel, IConstants.Creeps type) {
    if (context.getCredits() >= type.getPrice() && startCounter < 0
        && !context.isDead()) {

      BuildCreepMessage bcm = new BuildCreepMessage();
      bcm.setClientId(context.getPlayerId());
      bcm.setCreepType(type.toString());
      gamepanel.getCore().getNetwork().sendMessage(bcm);
      context.setCredits(context.getCredits() - type.getPrice());
      context.setIncome(context.getIncome() + type.getIncome());
      lastCreepSent = System.nanoTime();
View Full Code Here

TOP

Related Classes of de.creepsmash.common.messages.client.BuildCreepMessage

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.