diff options
author | davesilver <nibor123@gmail.com> | 2010-07-22 18:25:46 (GMT) |
---|---|---|
committer | davesilver <nibor123@gmail.com> | 2010-07-22 18:25:46 (GMT) |
commit | d63664222293bcc9b7f155758028421014d46ee5 (patch) | |
tree | 471fce13125a6a7df489aaab3a14ec9fd7c834c7 /DrawableObjectTests | |
parent | 14341e591c699d82563d43d44a26b9159b81a91e (diff) |
Editing Sprite tests
Diffstat (limited to 'DrawableObjectTests')
-rw-r--r-- | DrawableObjectTests/TestObject | 16 | ||||
-rw-r--r-- | DrawableObjectTests/TestObject.py | 16 | ||||
-rw-r--r-- | DrawableObjectTests/TestObject.txt | 16 |
3 files changed, 48 insertions, 0 deletions
diff --git a/DrawableObjectTests/TestObject b/DrawableObjectTests/TestObject new file mode 100644 index 0000000..3dbdc60 --- /dev/null +++ b/DrawableObjectTests/TestObject @@ -0,0 +1,16 @@ +import pygame
+from DrawableObject import DrawableObject
+
+class TestObject:
+
+ def __init__(self, drawableObject):
+
+ self.myDrawableObject = drawableObject
+
+ def changeSize(self, x, y):
+
+ self.myDrawableObject.scale(x,y)
+
+ def getDrawable(self):
+
+ return self.myDrawableObject
\ No newline at end of file diff --git a/DrawableObjectTests/TestObject.py b/DrawableObjectTests/TestObject.py new file mode 100644 index 0000000..3dbdc60 --- /dev/null +++ b/DrawableObjectTests/TestObject.py @@ -0,0 +1,16 @@ +import pygame
+from DrawableObject import DrawableObject
+
+class TestObject:
+
+ def __init__(self, drawableObject):
+
+ self.myDrawableObject = drawableObject
+
+ def changeSize(self, x, y):
+
+ self.myDrawableObject.scale(x,y)
+
+ def getDrawable(self):
+
+ return self.myDrawableObject
\ No newline at end of file diff --git a/DrawableObjectTests/TestObject.txt b/DrawableObjectTests/TestObject.txt new file mode 100644 index 0000000..3dbdc60 --- /dev/null +++ b/DrawableObjectTests/TestObject.txt @@ -0,0 +1,16 @@ +import pygame
+from DrawableObject import DrawableObject
+
+class TestObject:
+
+ def __init__(self, drawableObject):
+
+ self.myDrawableObject = drawableObject
+
+ def changeSize(self, x, y):
+
+ self.myDrawableObject.scale(x,y)
+
+ def getDrawable(self):
+
+ return self.myDrawableObject
\ No newline at end of file |