I am doing a little programming exercise in Java to get me back into the swing of things before school. My program will be video game (Team Fortress 2) related and as such I need to store data about a large number of weapons.
My current model is that I have a class for each type of weapon, (e.g. Scout_Primary or Soldier_Secondary) and I will modify the variables in each class depending on what specific weapon is selected. For example if Scout_Primary is "Scattergun" I will modify its base damage and reload speed accordingly.
If you are familiar with TF2 you will know that there is a large amount of weapons. How do I store all the weapons' stats in my program? I do not wish to write giant switch statements containing stats for each weapon in a category. I am very eager to work with SQL more (I have some experience with it but not too much, I have used JDBC before).
Is it possible to create a database and just package it with the program itself so that I don't have to worry about hosting? The only experience I have is with remote databases.
What I would like to do would be to have that local database and perform Selects and pass the data to a constructor. Thanks in advance.
EDIT: I have been looking at Derby, is this the right direction?