Package match.command

Examples of match.command.AssignRedCardCommand


            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));
            }

        }

        matchHandler.handle(new EndMatchCommand(matchId));
View Full Code Here

TOP

Related Classes of match.command.AssignRedCardCommand

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.