Class BaseGameInvitationCallback

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.slf4j.Logger log
      A reference to the logger
      protected ISFSApi sfsAPI
      A reference to the SFS API
    • Constructor Summary

      Constructors 
      Constructor Description
      BaseGameInvitationCallback​(Room game, boolean leaveLastJoinedRoom)
      Create a new Callback object keeping track of the Game Room
    • Field Detail

      • log

        protected final org.slf4j.Logger log
        A reference to the logger
      • sfsAPI

        protected final ISFSApi sfsAPI
        A reference to the SFS API
    • Constructor Detail

      • BaseGameInvitationCallback

        public BaseGameInvitationCallback​(Room game,
                                          boolean leaveLastJoinedRoom)
        Create a new Callback object keeping track of the Game Room
        Parameters:
        game - the game
        leaveLastJoinedRoom - true if the lastJoined Room should be left
    • Method Detail

      • getGame

        protected Room getGame()
        Get the Game
        Returns:
        the game to which this invitation refers to
      • isLeaveLastJoindRoom

        protected boolean isLeaveLastJoindRoom()
        Check if the join operation should include leaving the last joined Room
        Returns:
        true if the join operation should include leaving the last joined Room