-
Notifications
You must be signed in to change notification settings - Fork 0
STF Minecraft Plugin Conventions #18
Comments
Classes should have a defined single function |
I like to have functions listed in alphabetical order, or at least listed according to relevance. I can go in an attempt to refactor some of it. |
Generally if you want to have clean and loosely coupled code, you need to define what you want each class to do before you make it. If you say "hey we want this feature, where should we put it?" over and over, things are bound to get messy. Every class should have a clearly designed role and purpose. For example, "dataManager" is not really all that clear of a title. There's some other stuff like that. |
Like it's not clear from the naming whether "QueueManager" or "MatchManager" would take care of assigning which arena a person is given. I don't even know if these classes should be separate in the first place. I honestly don't even think FileManager should exist. I think there needs to be some methods in one of the classes (probably main) that spit back and take in what you need. Right now, we ignore (and have very few) abstraction barriers so it makes things interdependent and harder to debug. |
Queue since a player is given an arena on queue. I would imagine atleast, On Tue, Aug 5, 2014 at 2:16 PM, STFinancial notifications@github.com
|
I have begun working on cleaning up the classes. Check out stuff under the qsik package |
I resynced the files and a ton of shit is broken. Are you sure you fixed it all? And can we not have two packages or an Arena class inside of both packages, it's ambiguous as hell. |
Probably should fork for future On Wed, Aug 6, 2014 at 4:53 PM, STFinancial notifications@github.com
|
Apologies. Was at work, moving over to my own branch now |
Well I just don't really know what you're doing with it. If it's just code you're working on and are going to migrate over later, that's fine. |
it's out. you can repull |
How I see it should be/is ArenaPlayer is a class that tracks the status of an online player related to the arena plugin and can save in game state (save items before arena starts) |
Class Layout, variable names, method order and other conventions will need to be finalized for STF minecraft projects for readability and collaboration.
The text was updated successfully, but these errors were encountered: