All Packages Class Hierarchy This Package Previous Next Index
Class scrobble.ServerLanguage
java.lang.Object
|
+----scrobble.ServerLanguage
- public class ServerLanguage
- extends Object
-
bag
- Contains a bag
-
debug
- if true, enables the printing of debug informations on the console.
-
defaultDicoFile
-
-
defaultDistriFile
-
-
dicoFile
- The Files containing the dictionnary and the distribution with their default values
-
dictionnary
- Contains a dictionnary
-
distri
- Contains a distribution
-
distriFile
- The Files containing the dictionnary and the distribution with their default values
-
languageFile
- The File containing the properties of the Language Object is
languageFile<\code>
-
listOfLanguages
- The List of valid Languages in the
languageFile<\code>.
-
maxLanguages
- Contains the maximum of languages that the game can handle
-
props
-
-
ServerLanguage(int)
- Creates the language object with an identifer.
-
getBag()
- Gives the bag
-
getDico()
- Gives the dictionnary
-
getDistri()
- Gives the distribution
-
getLanguageInfo(String)
-
This method gets the identifier and the description from the
languageFile<\code>
-
getLanguages()
- Gives an enum of the valid Languages in the
languageFile<\code>.
-
loadFiles(Language)
- This method gets the dicoFile and distriFile from the
languageFile<\code>
-
loadLanguages()
- This method loads the languages in the
languageFile<\code> and adds them to the
listOfLanguages
Vector.
debug
static boolean debug
- if true, enables the printing of debug informations on the console.
dictionnary
Dico dictionnary
- Contains a dictionnary
bag
Bag bag
- Contains a bag
distri
Distribution distri
- Contains a distribution
dicoFile
String dicoFile
- The Files containing the dictionnary and the distribution with their default values
distriFile
String distriFile
- The Files containing the dictionnary and the distribution with their default values
defaultDicoFile
String defaultDicoFile
defaultDistriFile
String defaultDistriFile
languageFile
static String languageFile
- The File containing the properties of the Language Object is
languageFile<\code>
listOfLanguages
static Hashtable listOfLanguages
- The List of valid Languages in the
languageFile<\code>.
props
static Properties props
maxLanguages
static int maxLanguages
- Contains the maximum of languages that the game can handle
ServerLanguage
public ServerLanguage(int identifier)
- Creates the language object with an identifer.
- Parameters:
- identifier - the identifier of the language to which initialise
getDico
public Dico getDico()
- Gives the dictionnary
getBag
public Bag getBag()
- Gives the bag
getDistri
public Distribution getDistri()
- Gives the distribution
getLanguages
public static Enumeration getLanguages()
- Gives an enum of the valid Languages in the
languageFile<\code>.
loadLanguages
static void loadLanguages()
- This method loads the languages in the
languageFile<\code> and adds them to the
listOfLanguages
Vector. This function has no parameters.
getLanguageInfo
static void getLanguageInfo(String languageName)
- This method gets the identifier and the description from the
languageFile<\code>
loadFiles
void loadFiles(Language current)
- This method gets the dicoFile and distriFile from the
languageFile<\code>
All Packages Class Hierarchy This Package Previous Next Index