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

Refactoring Games.java : Adding EquipmentManager #92

Conversation

RedstoneFuture
Copy link
Owner

The class Games.java is the central object for a game. However, some methods and fields can be outsourced to manager classes to keep the Games class a bit more manageable. The following is a suggestion for outsourcing:

Games.java

  • NEW: method EquipmentManager()

Moving from Game.java to EquipmentManager.java

  • field ItemStack customBow (+ Getter)
  • field ItemStack customPickaxe (+ Getter)
  • field MissileGameEquipment missileEquipment (+ Getter)
  • field SpecialGameEquipment specialEquipment (+ Getter)
  • method createGameItems()
  • method sendGameItems()

@daniel-naegele daniel-naegele merged commit 8a36c1c into RedstoneFuture:master Jul 3, 2023
@RedstoneFuture RedstoneFuture deleted the refactoring/equipment-manager branch July 3, 2023 10:53
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.

2 participants