From 5768f5e70542ea1b1a3906b1bb8a2bb8d50b3224 Mon Sep 17 00:00:00 2001 From: TJ Date: Sun, 1 Dec 2013 15:23:43 +0000 Subject: [PATCH] engine: convert to 'new style' classes --- engine/Channel.py | 2 +- engine/Game.py | 4 ++-- engine/SeamlessBackground.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/Channel.py b/engine/Channel.py index 12f6215..1fbd4c6 100755 --- a/engine/Channel.py +++ b/engine/Channel.py @@ -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. diff --git a/engine/Game.py b/engine/Game.py index 3355f48..4434b64 100755 --- a/engine/Game.py +++ b/engine/Game.py @@ -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() diff --git a/engine/SeamlessBackground.py b/engine/SeamlessBackground.py index ebdd66b..e145ad0 100755 --- a/engine/SeamlessBackground.py +++ b/engine/SeamlessBackground.py @@ -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. -- 2.17.1