source: src/main/java/genius/core/events/TournamentSessionStartedEvent.java

Last change on this file was 1, checked in by Wouter Pasman, 7 years ago

Initial import : Genius 9.0.0

File size: 673 bytes
Line 
1package genius.core.events;
2
3/**
4 * Indicates that a session started. You get this message only in tournaments,
5 * where multiple sessions can be running.
6 *
7 * @author W.Pasman 15jul15
8 *
9 */
10public class TournamentSessionStartedEvent implements TournamentEvent {
11
12 private final int currentSession;
13 private final int totalSessions;
14
15 /**
16 * @param session
17 * First session has number 1.
18 * @param total
19 */
20 public TournamentSessionStartedEvent(int session, int total) {
21 currentSession = session;
22 totalSessions = total;
23 }
24
25 public int getCurrentSession() {
26 return currentSession;
27 }
28
29 public int getTotalSessions() {
30 return totalSessions;
31 }
32
33}
Note: See TracBrowser for help on using the repository browser.