Closed colinwerner closed 5 years ago
Thanks again!
Here's my feedback:
I agree having the client depend on the server is probably not the best idea; however, the client package already depends on the server package, so as it stands we cannot build the client on its own. So that's why I thought having the default port defined in one location was better (now if the client package doesn't depend on the server package, then it's a different story.
We can abandon this and I'll let you move the classes around...
OK, the nested classes are out except for MessageTreater. Thanks for nudging me along to get that done :)
Some of the names seemed unclear at this point, so GameManager is now GameMessageMaker, GameDisplay is MainDisplay.
I won't have time to move MessageTreater soon, so my moves are done for now.
1.) remove duplicated constant (at the expense of additional imports) 2.) tighten inner class scope (add TODO to consider making them their own classes -- as there are multiple nested classes) 3.) make classes final to avoid extensions (inner classes shouldn't really be extended) 4.) TODO: these inner classes don't really need to be static, another thing to do... 5.) dont need to pass around objects that have refs to each other (ie client and net)