AutoReferee  2.5
 All Classes Functions Variables
org.mctourney.autoreferee.event.match.MatchCompleteEvent Class Reference

Called when a match is ending. More...

+ Inheritance diagram for org.mctourney.autoreferee.event.match.MatchCompleteEvent:

Public Member Functions

AutoRefMatch getMatch ()
 Gets the match for this event. More...
 
AutoRefTeam getWinner ()
 Returns the winning team for this match. More...
 
boolean isCancelled ()
 Checks the cancelled state of the event. More...
 
void setCancelled (boolean cancel)
 Sets the cancelled state of the event. More...
 
void setWinner (AutoRefTeam winner)
 Sets the winning team for this match. More...
 

Detailed Description

Called when a match is ending.

Author
authorblues

Member Function Documentation

AutoRefMatch org.mctourney.autoreferee.event.match.MatchEvent.getMatch ( )
inherited

Gets the match for this event.

Returns
match
AutoRefTeam org.mctourney.autoreferee.event.match.MatchCompleteEvent.getWinner ( )

Returns the winning team for this match.

Returns
winning team, null if a tie or no winner
boolean org.mctourney.autoreferee.event.match.MatchCompleteEvent.isCancelled ( )

Checks the cancelled state of the event.

Returns
true if the event has been cancelled, false otherwise
void org.mctourney.autoreferee.event.match.MatchCompleteEvent.setCancelled ( boolean  cancel)

Sets the cancelled state of the event.

Parameters
canceltrue to cancel the event, false to uncancel the event
void org.mctourney.autoreferee.event.match.MatchCompleteEvent.setWinner ( AutoRefTeam  winner)

Sets the winning team for this match.

Parameters
winnerwinning team

The documentation for this class was generated from the following file: