NextTurnReq.java :  » Game » inequity » packets » Java Open Source

Java Open Source » Game » inequity 
inequity » packets » NextTurnReq.java
package packets;

import elements.Consts.Priorities;
import network.Game;

/**
 *
 * @author Joel Garboden
 */
public class NextTurnReq extends Request
{  
  public NextTurnReq()
  {
    this.priority = Priorities.TURN_UPDATE;
  }

  @Override
  public boolean processRequest(Game game)
  {
    game.nextTurn();
    return true;
  }

  @Override
  public String toString()
  {
    return "ToggleTurnCmd:NextTurn";
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.