mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Extract a common class/struct.
This is Refactoring / code cleanup. See: * https://en.wikipedia.org/wiki/God_object * https://en.wikipedia.org/wiki/Extract_class * https://en.wikipedia.org/wiki/Code_refactoring * https://www.refactoring.com/ * https://www.joelonsoftware.com/2002/01/23/rub-a-dub-dub/ Some small optimisations may have slipped in as well.
This commit is contained in:
parent
4d61d73f3a
commit
0082962a93
1 changed files with 1 additions and 8 deletions
|
@ -567,14 +567,7 @@ class Game(object):
|
|||
# optional MfxCanvasText items
|
||||
self.texts = GameTexts()
|
||||
# initial position of the texts
|
||||
self.init_texts = Struct(
|
||||
info=None, # misc info text
|
||||
help=None, # a static help text
|
||||
misc=None, #
|
||||
score=None, # for displaying the score
|
||||
base_rank=None, # for displaying the base_rank
|
||||
list=[],
|
||||
)
|
||||
self.init_texts = GameTexts()
|
||||
|
||||
def createPreview(self, app):
|
||||
old_busy = self.busy
|
||||
|
|
Loading…
Add table
Reference in a new issue