Commits

Anonymous committed 073dce8 Draft

Added process(MttDataAction) and process(MttSeatingFailedAction) to the
TournamentHandler interface, so guice tournaments can react to those actions.

  • Participants
  • Parent commits 5f84a6d

Comments (0)

Files changed (2)

src/main/java/com/cubeia/firebase/guice/tournament/GuiceTournament.java

 import java.util.ArrayList;
 import java.util.List;
 
-import com.cubeia.firebase.api.action.mtt.MttObjectAction;
-import com.cubeia.firebase.api.action.mtt.MttRoundReportAction;
-import com.cubeia.firebase.api.action.mtt.MttTablesCreatedAction;
+import com.cubeia.firebase.api.action.mtt.*;
 import com.cubeia.firebase.api.mtt.MttInstance;
 import com.cubeia.firebase.api.mtt.support.MTTStateSupport;
 import com.cubeia.firebase.api.mtt.support.MTTSupport;
 	}
 
 	@Override
+	public void process(MttDataAction action, MttInstance instance) {
+		guice(TournamentHandler.class).process(action, instance);
+	}
+
+	@Override
+	public void process(MttSeatingFailedAction action, MttInstance instance) {
+		guice(TournamentHandler.class).process(action, instance);
+	}
+
+	@Override
 	public void tournamentCreated(MttInstance arg0) {
 		guice(TournamentHandler.class).tournamentCreated(arg0);
 	}

src/main/java/com/cubeia/firebase/guice/tournament/TournamentHandler.java

 
 package com.cubeia.firebase.guice.tournament;
 
-import com.cubeia.firebase.api.action.mtt.MttObjectAction;
-import com.cubeia.firebase.api.action.mtt.MttRoundReportAction;
-import com.cubeia.firebase.api.action.mtt.MttTablesCreatedAction;
+import com.cubeia.firebase.api.action.mtt.*;
 import com.cubeia.firebase.api.mtt.MttInstance;
 import com.cubeia.firebase.api.mtt.support.MTTStateSupport;
 import com.cubeia.firebase.api.mtt.support.registry.PlayerInterceptor;
 	public void process(MttTablesCreatedAction arg0, MttInstance arg1);
 	
 	public void process(MttObjectAction arg0, MttInstance arg1);
+
+	public void process(MttDataAction action, MttInstance instance);
+
+	public void process(MttSeatingFailedAction action, MttInstance instance);
 	
 	public void tournamentCreated(MttInstance arg0);