Skip to content

Added CombatManagerService and pulled out core functionality from UI#29

Open
herrozerro wants to merge 1 commit intosander1095:devfrom
herrozerro:dev
Open

Added CombatManagerService and pulled out core functionality from UI#29
herrozerro wants to merge 1 commit intosander1095:devfrom
herrozerro:dev

Conversation

@herrozerro
Copy link
Copy Markdown

@herrozerro herrozerro commented Oct 9, 2019

Added a CombatManagerService that exposes the core functionality.

  • List of combatants. Tracking current and next
  • Save, Delete, Sort Combatants
  • Advance Turn
  • Track Rounds

Stripped out any references to the above in the GUI and let the service manage the combat. The GUI still has a lot of UI specific code which is fine. But using this service it can be extended to other UIs

I don't know if this satisfies #5 or not, but if not maybe it should be changed to drop the WPF, as this commit puts core functionality into a service and can be used in other patterns including MVVM for WPF.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant