From 257b95219a40ec35db2b58b789a3bd1cb61b03a5 Mon Sep 17 00:00:00 2001 From: Bertrand BRUN Date: Tue, 1 Feb 2011 23:57:53 +0100 Subject: [PATCH] Changement de nom de Game -> DownloadedGame --- .../model/{Game.java => DownloadedGame.java} | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) rename code/PtiClic/src/org/pticlic/model/{Game.java => DownloadedGame.java} (85%) diff --git a/code/PtiClic/src/org/pticlic/model/Game.java b/code/PtiClic/src/org/pticlic/model/DownloadedGame.java similarity index 85% rename from code/PtiClic/src/org/pticlic/model/Game.java rename to code/PtiClic/src/org/pticlic/model/DownloadedGame.java index 22dbc0e..883f30e 100644 --- a/code/PtiClic/src/org/pticlic/model/Game.java +++ b/code/PtiClic/src/org/pticlic/model/DownloadedGame.java @@ -3,7 +3,13 @@ package org.pticlic.model; import java.io.Serializable; -public class Game implements Serializable { +/** + * @author Bertrand BRUN + * + * Classe metier reprensentant le jeu telecharger du serveur. + * + */ +public class DownloadedGame implements Serializable { private static final long serialVersionUID = 1L; @@ -42,7 +48,7 @@ public class Game implements Serializable { - public Game(int id, int cat1, int cat2, int cat3, int cat4, Word center, + public DownloadedGame(int id, int cat1, int cat2, int cat3, int cat4, Word center, Word[] cloud) { super(); this.id = id; @@ -54,6 +60,11 @@ public class Game implements Serializable { this.cloud = cloud; } + /** + * Permet de recupere le nombre de relation que l'on va utiliser. + * + * @return le nombre de relation + */ public int getNbRelation() { int res = 0;