mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-15 02:54:09 -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
3ff955be53
commit
35d6c0e9b4
1 changed files with 1 additions and 8 deletions
|
@ -567,14 +567,7 @@ class Game(object):
|
||||||
# optional MfxCanvasText items
|
# optional MfxCanvasText items
|
||||||
self.texts = GameTexts()
|
self.texts = GameTexts()
|
||||||
# initial position of the texts
|
# initial position of the texts
|
||||||
self.init_texts = Struct(
|
self.init_texts = GameTexts()
|
||||||
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=[],
|
|
||||||
)
|
|
||||||
|
|
||||||
def createPreview(self, app):
|
def createPreview(self, app):
|
||||||
old_busy = self.busy
|
old_busy = self.busy
|
||||||
|
|
Loading…
Add table
Reference in a new issue