Creates a new instance of Moods
()
| 40 | |
| 41 | /** Creates a new instance of Moods */ |
| 42 | private Moods() { |
| 43 | String moodFile="/lang/"+Client.Config.getInstance().lang+".moods.txt"; |
| 44 | Vector vMood[]=new StringLoader().stringLoader(moodFile, 2); |
| 45 | |
| 46 | if (vMood==null) vMood=new StringLoader().stringLoader("/lang/en.moods.txt", 2); |
| 47 | if (vMood==null) { |
| 48 | //System.out.println("Cant't load mood names"); |
| 49 | moodKey=null; |
| 50 | moodKey=new Vector(); |
| 51 | moodValue=null; |
| 52 | moodValue=new Vector(); |
| 53 | } else { |
| 54 | moodKey=(Vector)vMood[0]; |
| 55 | moodValue=(Vector)vMood[1]; |
| 56 | } |
| 57 | |
| 58 | moodKey.trimToSize(); |
| 59 | moodValue.trimToSize(); |
| 60 | } |
| 61 | |
| 62 | Vector moodKey; |
| 63 | Vector moodValue; |
nothing calls this directly
no test coverage detected