engine: convert to 'new style' classes
authorTJ <git@iam.tj>
Sun, 1 Dec 2013 15:23:43 +0000 (15:23 +0000)
committerTJ <git@iam.tj>
Sun, 1 Dec 2013 15:23:43 +0000 (15:23 +0000)
engine/Channel.py
engine/Game.py
engine/SeamlessBackground.py

index 12f6215..1fbd4c6 100755 (executable)
@@ -7,7 +7,7 @@
 import os, random, pygame
 import engine
 
-class Channel:
+class Channel(object):
  """ Represents an audio output. Can represent a user-created SDL channel or the single
  Music channel (which can load/play Ogg, MP3 and other audio media). The Music channel
  can be primed with a playlist which will shuffle and loop.
index 3355f48..4434b64 100755 (executable)
@@ -6,7 +6,7 @@
 
 import os.path, pygame, engine
 
-class Style:
+class Style(object):
  """ Encapsulate the attributes required for printing styled text """
  font = None
  colour = None
@@ -20,7 +20,7 @@ class Style:
   Style.debug = debug
   if Style.debug: engine.debug_pr("Style %s, height: %d, colour:" % (font, height), self.colour)
 
-class Game:
+class Game(object):
  """ Container for all game state and configuration items """
  config = dict()
  styles = dict()
index ebdd66b..e145ad0 100755 (executable)
@@ -6,7 +6,7 @@
 
 import os, time, pygame, engine
 
-class SeamlessBackground:
+class SeamlessBackground(object):
  """ The game window has a scrolling background image that is seamless, which allows it to be tiled
      so that as the viewport scrolls the image appears to be continuous in both directions.