|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectConfigConverter
A utility to convert the old config file formatted slot information into the new SlotDataMgr format.
| Field Summary | |
private static Hashtable |
config
|
private static int |
numslots
|
| Constructor Summary | |
ConfigConverter()
|
|
| Method Summary | |
static int |
drinksDropped(int slot)
Returns the number of drinks dropped by the given slot. |
static int |
drinksLeft(int slot)
Returns the number of drinks left in the given slot. |
static int |
getPrice(int slot)
Returns the price of the slot. |
private static Slot |
getSlot(int slot)
Returns the Slot object associated with the given slot index. |
private static boolean |
isEnabled(int slot)
Determines if the given slot is enabled. |
static void |
main(String[] args)
Converts the named hashmap-style config file to the new SlotDataMgr format for the slots data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static int numslots
private static Hashtable config
| Constructor Detail |
public ConfigConverter()
| Method Detail |
public static void main(String[] args)
args - The command line arguments. The first argument is the filename
of the old config file to generate the new SlotDataMgr formatted
data from. The second argument is the name of the output file for
the SlotDataMgr formatted data.private static Slot getSlot(int slot)
slot - The slot index to retrieve the Slot object for.
private static boolean isEnabled(int slot)
slot - The slot to check.
public static int drinksLeft(int slot)
slot - The index of the slot to return the number of drinks left.public static int drinksDropped(int slot)
slot - The index of the slot to return the number of drinks dropped.public static int getPrice(int slot)
slot - The slot to retrieve the price for.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||