FrontController
ControllerAdministrators
addAdministrator(administrator: EntityAdministrator): void
removeAdministrator(administrator: EntityAdministrator): void
getAdministrators(): List<EntityAdministrator>
getAdministratorByUsername(username: string): EntityAdministrator
verifyAdministratorCredentials(username: string, password: string): int
verifyAdministratorByName(nickname: string): int
setAdministratorPassword(username: string, newPassword: string): void
ControllerQuestions
addQuestion(question: EntityQuestion): void
removeQuestion(question: EntityQuestion): void
getQuestions(): List<EntityQuestion>
getQuestionsByChapterAndDifficulty(chapter: int, difficulty: int):
List<EntityQuestion>
removeQuestionById(id: int): void
getQuestionById(id: int): EntityQuestion
updateQuestion(id: int, questionDataArray: EntityQuestion): void
updateNbFails(question: EntityQuestion): void
updateDifficulty(question: EntityQuestion): void
ControllerAnswers
addAnswer(answer: Answer): int
removeAnswer(answer: Answer): void
getAnswers(): List<Answer>
getAnswersByIdQuestions(idQuestion: int): List<Answer>
updateAnswer(answersId: int, answer: Answer): void
removeAnswerById(id: int): void
ControllerLobbies
addLobby(lobby: EntityLobby): void
removeLobby(lobby: EntityLobby): void
getLobbies(): List<EntityLobby>
getLobbyById(lobbyId: int): EntityLobby
verifyLobbyPassword(lobbyId: int, password: string): boolean
setLobbyPassword(lobbyId: int, newPassword: string): void
ControllerPlayers
addPlayer(player: EntityPlayer): void
removePlayer(player: EntityPlayer): void
getPlayers(): List<EntityPlayer>
getPlayerById(playerId: int): EntityPlayer
getPlayerByNickname(nickname: string): EntityPlayer
getPlayersInLobby(lobbyId: int): List<EntityPlayer>
getPlayersMaxScore(playerId: int): int
verifyPlayerCredentials(nickname: string, password: string): int
verifyPlayerByName(nickname: string): int
setPlayerPassword(playerId: int, newPassword: string): void
ControllerChapters
addChapter(chapter: EntityChapter): void
removeChapter(chapter: EntityChapter): void
getChapters(): List<EntityChapter>
getChapterById(chapterId: int): EntityChapter
AdministratorsManager
addAdministrator(administrator: Administrator): void
removeAdministrator(administrator: Administrator): void
getAdministrators(): List<Administrator>
QuestionsManager
addQuestion(question: Question): void
removeQuestion(question: Question): void
getQuestions(): List<Question>
AnswersManager
addAnswer(answer: Answer): void
removeAnswer(answer: Answer): void
getAnswers(): List<Answer>
LobbiesManager
addLobby(lobby: Lobby): void
removeLobby(lobby: Lobby): void
getLobbies(): List<Lobby>
PlayersManager
addPlayer(player: Player): void
removePlayer(player: Player): void
getPlayers(): List<Player>
ChaptersManager
addChapter(chapter: Chapter): void
removeChapter(chapter: Chapter): void
getChapters(): List<Chapter>
«Serializable»Lobbies
addLobby(lobby : Lobby )
removeLobby(lobby : Lobby )
getLobbies(): List<Lobby>
Lobby
id: int
name: string
password: string
nbPlayers: int
getId(): int
getName(): string
getNbPlayers(): int
setNbPlayers(nbPlayers: int): void
«Serializable»Answers
addAnswer(answer: Answer)
removeAnswer(answer: Answer)
getAnswers(): List<Answer>
Answer
id: int
content: string
idQuestion: int
Answer(id: int, content: string, idQuestion: int)
getId(): int
getContent()
getIdQuestion()
setContent(content: string): void
«Serializable»Administrators
addAdministrator(administrator: Administrator)
removeAdministrator(administrator: Administrator)
getAdministrators(): List<Administrator>
Administrator
id: int
username: string
hashedPassword: string
Administrator(id: int, username: string, password: string)
getId(): int
getUsername()
getHashedPassword()
setHashedPassword(hashedPassword: string): void
«Serializable»Questions
addQuestion(question: Question)
removeQuestion(question: Question)
getQuestions(): List<Question>
Question
id: int
content: string
idChapter: int
idAnswerGood: int
difficulty: int
nbFails: int
Question(id: int, content: string, idChapter: int, idAnswerGood: int = -1,
difficulty: int = 1, nbFails: int = 0)
getId(): int
getContent(): string
getIdChapter(): int
getIdAnswerGood(): int
getDifficulty(): int
getNbFails(): int
setContent(content: string): void
setIdAnswerGood(idAnswerGood: int): void
setDifficulty(difficulty: int): void
setNbFails(nbFails: int): void
«Serializable»Chapters
addChapter(chapter: Chapter)
removeChapter(chapter: Chapter)
getChapters(): List<Chapter>
Chapter
id: int
name: string
Chapter(id: int, name: string)
getId()
getName()
setName(name: string): void
«Serializable»Players
addPlayer(player: Player)
removePlayer(player: Player)
getPlayers(): List<Player>
Player
id: int
nickname: string
hashedPassword: string
Player(id: int, nickname: string, password: string)
getId(): int
getNickname(): string
getHashedPassword(): string
setHashedPassword(hashedPassword: string): void
EntityAnswer
id: int
content: string
idQuestion: int
EntityLobby
id: int
name: string
password: string
nbPlayers: int
idPlayerCreator: int
EntityAdministrator
id: int
username: string
password: string
EntityQuestion
id: int
content: string
difficulty: int
nbfails: int
idChapter: int
idAnswerGood: int
EntityChapter
id: int
name: string
EntityPlayer
id: int
nickname: string
password: string
GatewayPlayer
addPlayer(player: EntityPlayer)
removePlayer(player: EntityPlayer)
getPlayers(): List<EntityPlayer>
getPlayerById(playerId: int): EntityPlayer
getPlayerByNickname(nickname: string): EntityPlayer
getPlayersInLobby(lobbyId: int): List<EntityPlayer>
getPlayersMaxScore(playerId: int): int
verifyPlayerCredentials(nickname: string, password: string): int
verifyPlayerByName(nickname: string): int
setPlayerPassword(playerId: int, newPassword: string): void
GatewayLobby
addLobby(lobby: EntityLobby)
removeLobby(lobby: EntityLobby)
getLobbies(): List<EntityLobby>
getLobbyById(lobbyId: int): EntityLobby
verifyLobbyPassword(lobbyId: int, password: string): boolean
setLobbyPassword(lobbyId: int, newPassword: string): void
GatewayChapter
addChapter(chapter: EntityChapter)
removeChapter(chapter: EntityChapter)
getChapters(): List<EntityChapter>
getChapterById(chapterId: int): EntityChapter
GatewayAnswer
addAnswer(answer: Answer): int
getAnswerByID(id: int): Answer
getAnswersByIDQuestions(idQuestion: int): List<Answer>
updateAnswer(answersId: int, answer: Answer): void
removeAnswerByID(id: int): void
GatewayQuestion
getQuestions(): List<Question>
getQuestionsByChapterAndDifficulty(chapter: int, difficulty: int):
List<Question>
removeQuestionByID(id: int): void
addQuestion(questionsDataArray: List<Question>): int
getQuestionByID(id: int): Question
updateQuestion(id: int, questionDataArray: Question): void
updateNbFails(question: Question): void
updateDifficulty(question: Question): void
GatewayAdministrator
addAdministrator(administrator: EntityAdministrator)
removeAdministrator(administrator: EntityAdministrator)
getAdministrators(): List<EntityAdministrator>
getAdministratorByUsername(username: string): EntityAdministrator
verifyAdministratorCredentials(username: string, password: string): int
verifyAdministratorByName(nickname: string): int
setAdministratorPassword(username: string, newPassword: string): void
lobbies
answers
administrators
questions
chapters
players
ctrlAdministrators
ctrlQuestions
ctrlAnswers
ctrlLobbies
ctrlPlayers
ctrlChapters
administratorsManager
questionsManager
answersManager
lobbiesManager
playersManager
chaptersManager
administrators
questions
answers
lobbies
players
chapters
entAdministrator
entQuestion
entAnswer
entLobby
entPlayer
entChapter