Page 1 of 1

Singletons and you

PostPosted: 23 Oct 2012, 19:19
by Max mtg
Hey guys,

Please, don't write those ugly Singeltons.getModel.getGameState in your added code if there already is local variable holding that game or a class member with reference to current game you can use.

And whenever there are more than 2-3 references to Singeltons.getModel.getGameState in a single method, consider declaring a variable to hold the value you are fetching from singletons so many times.

Re: Singletons and you

PostPosted: 23 Oct 2012, 19:23
by Hellfish
Noted. *Changes last commit*