View Javadoc

1   package cz.cuni.amis.pogamut.ut2004.tournament.match.result;
2   
3   import cz.cuni.amis.utils.token.IToken;
4   
5   /**
6    * Represents the result of the match (very limited). Just stating whether the match was fought by teams/individuals
7    * and the winner.
8    * 
9    * @author Jimmy
10   */
11  public class UT2004IndividualMatchResult extends UT2004MatchResult {
12  
13  	private IToken winnerBot;
14  	private boolean draw;
15  
16  	public UT2004IndividualMatchResult() {
17  		super(true);
18  	}
19  	
20  	public UT2004IndividualMatchResult(IToken winnerBot) {
21  		super(true);
22  		this.winnerBot = winnerBot;
23  	}
24  	
25  	public IToken getWinnerBot() {
26  		return winnerBot;
27  	}
28  
29  	public void setWinnerBot(IToken winnerBot) {
30  		this.winnerBot = winnerBot;
31  	}
32  
33  	public boolean isDraw() {
34  		return draw;
35  	}
36  
37  	public void setDraw(boolean draw) {
38  		this.draw = draw;
39  	}
40  	
41  }