Closed RedstoneFuture closed 1 year ago
This is definitely a good idea. I would split in this into smaller PRs, with the addition of the EquipmentManager, TaskManager each.
I am not sure if moving the teleportTo
methods is useful at the moment. I'm thinking about moving some player based methods (removePlayer
, broadcast
, startForPlayer
, setPlayerAttributes
, the teleport methods, ...) to a separate manager - but not yet.
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
Moving from
Game.java
toLobby.java
Moving from
Game.java
toArena.java
Moving from
Game.java
toEquipmentManager.java
Moving from
Game.java
toTaskManager.java