Facebook
From Mature Bird, 9 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 580
  1. public class Config
  2. {
  3.         private static String s;
  4.        
  5.         private Config() {}
  6.        
  7.         public static void initialize()
  8.         {
  9.                 s = new String("default");
  10.         }
  11.        
  12.         // PUBLICZNE METODY DOTYCZĄCE USTAWIEŃ OGÓLNYCH
  13.        
  14.         public static String getSetting(String settingName)
  15.         {
  16.                 return s;
  17.         }
  18.        
  19.         public static boolean setSetting(String settingName, String settingValue)
  20.         {
  21.                 return false;
  22.         }
  23.        
  24.         // PUBLICZNE METODY DOTYCZĄCE USTAWIEŃ JĘZYKOWYCH
  25.        
  26.         public static String getText(String textName)
  27.         {
  28.                 return s;
  29.         }
  30.        
  31.         public static void setLanguage(String languageName)
  32.         {
  33.                
  34.         }
  35.        
  36.         // PUBLICZNE METODY DOTYCZĄCE TABLICY NAJLEPSZYCH WYNIKÓW
  37.        
  38.         public static boolean addScore(String playerName, int playerScore)
  39.         {
  40.                 return false;
  41.         }
  42.        
  43.         public static String showBestScores()
  44.         {
  45.                 return s;
  46.         }
  47.        
  48.         // PUBLICZNE METODY DOTYCZĄCE USTAWIEŃ POZIOMÓW
  49.        
  50.         public static int getGameTime()
  51.         {
  52.                 return 0;
  53.         }
  54.        
  55.         //... i tak dalej tutaj można oddzielne dać dla przejrzystości, bo nie jest tego aż tak dużo
  56. }