Skip to content
Snippets Groups Projects

refactor: added singleton class to hold information for controllers

Merged Carl Gützkow requested to merge refactor/singleton into master

What are the key features of this change

Added a BattleSimulationSingleton class which holds the information of the original and current armies, current battle, scores, filepaths and more. This removes coupling between the BattleController and EditArmyController. Also moved tests into other packages for structure.

closes: None

Size of change: medium

Checklist

  • Javadoc is added to methods and classes
  • Tests are added to feature
  • Build tool test passed

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading