project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Datastructures/Scheme.java
equal
deleted
inserted
replaced
230 if(result==null) { |
230 if(result==null) { |
231 throw new IllegalArgumentException("basicsettings.ini, section "+section.getName()+" is missing required setting "+key+"."); |
231 throw new IllegalArgumentException("basicsettings.ini, section "+section.getName()+" is missing required setting "+key+"."); |
232 } |
232 } |
233 return result; |
233 return result; |
234 } |
234 } |
|
235 |
|
236 @Override |
|
237 public String toString() { |
|
238 return String |
|
239 .format("BasicSettingMeta [command=%s, title=%s, def=%s, min=%s, max=%s, times1000=%s, checkOverMax=%s]", |
|
240 command, title, def, min, max, times1000, checkOverMax); |
|
241 } |
235 } |
242 } |
236 |
243 |
237 // TODO: Extend with additional metadata |
244 // TODO: Extend with additional metadata |
238 class GameModMeta { |
245 class GameModMeta { |
239 final int bitmaskIndex; |
246 final int bitmaskIndex; |
247 if(result==null) { |
254 if(result==null) { |
248 throw new IllegalArgumentException("gamemods.ini, section "+section.getName()+" is missing required setting "+key+"."); |
255 throw new IllegalArgumentException("gamemods.ini, section "+section.getName()+" is missing required setting "+key+"."); |
249 } |
256 } |
250 return result; |
257 return result; |
251 } |
258 } |
|
259 |
|
260 @Override |
|
261 public String toString() { |
|
262 return String.format("GameModMeta [bitmaskIndex=%s]", bitmaskIndex); |
|
263 } |
252 } |
264 } |