1112131415161718
this.playerName = playerName; } public boolean addPlayer() { theGame = StaticGame.theGame; Player thePlayer = theGame.addPlayer(playerName); return theGame.playerIsPlaying(thePlayer); }
171819202122232425
return theGame.playerIsPlaying(thePlayer); } public boolean removePlayer() { theGame = StaticGame.theGame; Player thePlayer = theGame.getPlayerNamed(playerName); theGame.removePlayer(thePlayer); return playerWasRemoved(thePlayer); }