Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break Card Logic out of Board Class #32

Open
pongstylin opened this issue Feb 13, 2019 · 0 comments
Open

Break Card Logic out of Board Class #32

pongstylin opened this issue Feb 13, 2019 · 0 comments
Labels
technical debt Improve the development experience without altering the game experience

Comments

@pongstylin
Copy link
Owner

In my quest to make the board class less monolithic by breaking out some logic to a separate Game class, I have determined that the card should continue to be managed by the board object, but via instantiating a new Card class. The Card object has a method that can take a unit object argument. Alternatively, it has a method that displays an arbitrary notice using the Trophy avatar and "Champion" name. The Trophy unit is instantiated and cached by the Card class.

@pongstylin pongstylin added the technical debt Improve the development experience without altering the game experience label Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
technical debt Improve the development experience without altering the game experience
Projects
None yet
Development

No branches or pull requests

1 participant