Пример #1
0
 /**
  * New set game event.
  *
  * @param set the set
  * @param game the game
  * @return the sets the event
  */
 public static SetEvent newSetGameEvent(ISet set, IGame game) {
   SetEvent result = new SetEvent(SetEventType.NEW_CURRENT_GAME, set);
   result.game = game;
   return result;
 }
Пример #2
0
 /**
  * New set finished event.
  *
  * @param set the set
  * @param winner the winner
  * @param game the game
  * @return the sets the event
  */
 public static SetEvent newSetFinishedEvent(ISet set, IPlayer winner, IGame game) {
   SetEvent result = new SetEvent(SetEventType.SET_FINISHED, set);
   result.player = winner;
   result.game = game;
   return result;
 }