Item no longer has a count. That is handled by the HashMap linking Item to Quantity
[Feat1] - Update #1
- moved the main.css file to src/app/main.css
- moved and renamed the CampaignSaver FXML file to src/app/views/CampaignSaverView
- created the AbstractViewController to allow new controller classes to inherit from the main controller.
- removed the Driver and created src/app/Main as the program's entry point
- created the CampaignSaverView's controller src/app/controllers/CampaignSaverController
- altered all entites to be serializable
- added appropriate toString methods to entities to allow FX controls to display them correctly.
added an AbstractModel class to clean up re-used code inside of each Model
added the ItemModel
added default serial ID and extended the Models to inherit from AbstractModel
added FileHelper class to handle loading and saving the campaign files
removed the text-fill property from the choice-box selector, eclipse was throwing a fit
[Feat1] - Update #2
- altered CampaignSaverController to add ObservableLists for players, items and events.
- created a method in CampaignSaverController to handle loading and saving along with updating each ObservableList respectively
- removed the getName method from Item since toString handles that
- added a serial version id to the CampaignModel
modified the loadList method insde of CampaignSaverController to use the inherited method getArrayList from each model
extended the EventLogModel to inherit from AbstractModel
added the ItemModel and the respective getter method to the CampaignModel
changed the saveCampaign method to return a Boolean in order to test if the file successfully saved or not
fleshed out the save and addEntry methods
added the ObservableList's addAll method for setting the itemList when loading/creating
general cleanup
general cleanup
moved addEntry to sit bellow the other add methods and added managePlayers, manageItems and manageEvents methods to hook into the FXML buttons
added actions to button events
removed FXML annotations from addPlayer, addItem and addEntry; also handled checking if the TextField is empty before adding a new Event
changed the method for getting the main.css stylesheet