changeset 43:1cc037593517

Fixed bug in components
author KarstenBock@gmx.net
date Thu, 01 Sep 2011 23:26:02 +0200
parents 9a97f53fc550
children 9f631144124f
files src/parpg/components/Behavior.py src/parpg/components/CharacterStatistics.py src/parpg/components/containable.py src/parpg/components/container.py src/parpg/components/description.py src/parpg/components/dialog.py src/parpg/components/fifeagent.py src/parpg/components/lockable.py
diffstat 8 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/parpg/components/Behavior.py	Wed Aug 10 21:08:48 2011 +0200
+++ b/src/parpg/components/Behavior.py	Thu Sep 01 23:26:02 2011 +0200
@@ -21,4 +21,4 @@
     
     def __init__(self):
         """Constructor"""
-        Component.__init__(scripts=list)
+        Component.__init__(self, scripts=list)
--- a/src/parpg/components/CharacterStatistics.py	Wed Aug 10 21:08:48 2011 +0200
+++ b/src/parpg/components/CharacterStatistics.py	Thu Sep 01 23:26:02 2011 +0200
@@ -18,4 +18,4 @@
     
     def __init__(self):
         """Constructor"""
-        Component.__init__(statistics=dict)
+        Component.__init__(self, statistics=dict)
--- a/src/parpg/components/containable.py	Wed Aug 10 21:08:48 2011 +0200
+++ b/src/parpg/components/containable.py	Thu Sep 01 23:26:02 2011 +0200
@@ -18,4 +18,4 @@
     
     def __init__(self):
         """Constructor"""
-        Component.__init__(bulk=int, weight=int, image=str, container=object)
+        Component.__init__(self, bulk=int, weight=int, image=str, container=object, slot=int)
--- a/src/parpg/components/container.py	Wed Aug 10 21:08:48 2011 +0200
+++ b/src/parpg/components/container.py	Thu Sep 01 23:26:02 2011 +0200
@@ -19,4 +19,4 @@
     """
     
     def __init__(self):
-        Component.__init__(children=list, max_bulk=int)
+        Component.__init__(self, children=list, max_bulk=int)
--- a/src/parpg/components/description.py	Wed Aug 10 21:08:48 2011 +0200
+++ b/src/parpg/components/description.py	Thu Sep 01 23:26:02 2011 +0200
@@ -18,4 +18,4 @@
     
     def __init__(self):
         """Constructor"""
-        Component.__init__(view_name=str, real_name=str, desc=str)
+        Component.__init__(self, view_name=str, real_name=str, desc=str)
--- a/src/parpg/components/dialog.py	Wed Aug 10 21:08:48 2011 +0200
+++ b/src/parpg/components/dialog.py	Thu Sep 01 23:26:02 2011 +0200
@@ -18,4 +18,4 @@
     
     def __init__(self):
         """Constructor"""
-        Component.__init__(dialogue=object)
+        Component.__init__(self, dialogue=object)
--- a/src/parpg/components/fifeagent.py	Wed Aug 10 21:08:48 2011 +0200
+++ b/src/parpg/components/fifeagent.py	Thu Sep 01 23:26:02 2011 +0200
@@ -18,4 +18,4 @@
     
     def __init__(self):
         """Constructor"""
-        Component.__init__(identifier=int, layer=object, behaviour=object, gfx=str)
+        Component.__init__(self, identifier=int, layer=object, behaviour=object, gfx=str)
--- a/src/parpg/components/lockable.py	Wed Aug 10 21:08:48 2011 +0200
+++ b/src/parpg/components/lockable.py	Thu Sep 01 23:26:02 2011 +0200
@@ -18,4 +18,4 @@
     
     def __init__(self):
         """Constructor"""
-        Component.__init__(locked=bool)
+        Component.__init__(self, locked=bool)