Package match.command

Examples of match.command.AssignYellowCardCommand



        // Give cards
        for (PlayerModel playerModel : soccerMatch.getPlayerSet()) {
            if (playerModel.getPlayerName().equals("frank")) {
                matchHandler.handle(new AssignYellowCardCommand(matchId, playerModel));
            }
            if (playerModel.getPlayerName().equals("piet")) { // assign two yellow cards
                matchHandler.handle(new AssignYellowCardCommand(matchId, playerModel));
                matchHandler.handle(new AssignYellowCardCommand(matchId, playerModel));
            }
            if (playerModel.getPlayerName().equals("henk")) {
                matchHandler.handle(new AssignRedCardCommand(matchId, playerModel));
            }
View Full Code Here

TOP

Related Classes of match.command.AssignYellowCardCommand

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.