Rob Cashwalker wrote:Braids -
Back to one of your issues.... I know you have a number of small changes to lots of code, like adding Serializing code to just about everything. I think that sort of preparatory stuff can be done in the live branch, since it's minimally invasive.
ok, thanks. i was planning on getting to that once i've put down another project i was toying with while waiting for the beta.
Rob Cashwalker wrote:Static references of variables and arrays, is one of the biggest issues listed in the Maven reports. I can't see how too much harm can come from fixing that. Given the example, all future "static reference" needs can follow the same patterns.
which patterns? i'm a little confused. i know i changed a lot of direct access into method calls; that was to prepare to eventually move all static game state data into nonstatic fields of a class that could be accessed statically. if you search the AI Evolution topic for Unstatic, you'll see more about that.
less over your head version: there could be a GameState class that houses fields that were formerly static. it has no static fields of its own. then there is a gatekeeper class called Unstatic, like being undead, which has a static method to get the "current" GameState instance.
besides AllZone, there are a few weird places where static fields are used and probably shouldn't be. Phase is one of them. i can't recall the other at the moment... was it Combat? i'm too tired to check right now.