Examples of consumeTicket()


Examples of org.scotlandyard.engine.Token.consumeTicket()

    Player player=game.getPlayer(playerEmail);

    Token token = player.getTokens(game.getIdentifier())
      .get(TransportationMethod.valueOf(transportationMethod));

    token.consumeTicket();

    player.useTokenToMove(game.getIdentifier(), token, positionReg);


    return JsonFactory.toJson(position);
View Full Code Here

Examples of scotlandyard.engine.spec.IPlayer.consumeTicket()

    // update player last activity
    player.updateLastActivity();

    // decrement player's tickets
    player.consumeTicket(transport);

    // make player place empty
    map.positions[player.getPosition()] = null;

    // move to new position
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.