changeset 43:8f9e9f47c363

Added dialogue value to Character entity
author KarstenBock@gmx.net
date Tue, 06 Sep 2011 15:21:36 +0200
parents 66a06de1bddc
children 98f26f7636d8
files entities/character.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/entities/character.py	Tue Sep 06 14:37:54 2011 +0200
+++ b/entities/character.py	Tue Sep 06 15:21:36 2011 +0200
@@ -16,8 +16,8 @@
 
 class Character(Entity):
     def __init__(self, world, view_name, real_name, desc, statistics, max_bulk,
-                 identifier, layer=None, behaviour=None, gfx=None, 
-                 pos=Vec2d(0.0, 0.0), items=None
+                 identifier, layer=None, behaviour=None, dialogue=None, 
+                 gfx=None, pos=Vec2d(0.0, 0.0), items=None
                  ):
         self.characterstats.statistics = statistics
         
@@ -25,6 +25,8 @@
         self.description.real_name = real_name
         self.description.desc = desc
         
+        self.dialogue.dialogue = dialogue
+        
         self.container.children = items or []
         self.container.max_bulk = max_bulk