changed GameDecorator.java to show full name of players.
This commit is contained in:
		
							parent
							
								
									de728745f6
								
							
						
					
					
						commit
						4d193abb64
					
				| 
						 | 
					@ -38,14 +38,14 @@ public class GameDecorator {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public String getParticipantOne() {
 | 
					    public String getParticipantOne() {
 | 
				
			||||||
        if (game.getParticipant1() != null) {
 | 
					        if (game.getParticipant1() != null) {
 | 
				
			||||||
            return game.getParticipant1().getName();
 | 
					            return game.getParticipant1().toString();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return "1";
 | 
					        return "1";
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public String getParticipantTwo() {
 | 
					    public String getParticipantTwo() {
 | 
				
			||||||
        if (game.getParticipant2() != null) {
 | 
					        if (game.getParticipant2() != null) {
 | 
				
			||||||
            return game.getParticipant2().getName();
 | 
					            return game.getParticipant2().toString();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return "2";
 | 
					        return "2";
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue