# HG changeset patch # User KarstenBock@gmx.net # Date 1315226803 -7200 # Node ID b15cf999216a6dfcc79d3b6ea741d8ae47ad6222 # Parent 565ceb192cb9f25fc7535e5872c90835aaab0e7a Added components to the World class diff -r 565ceb192cb9 -r b15cf999216a src/parpg/world.py --- a/src/parpg/world.py Mon Sep 05 14:45:28 2011 +0200 +++ b/src/parpg/world.py Mon Sep 05 14:46:43 2011 +0200 @@ -1,11 +1,25 @@ from parpg.grease.world import * + from parpg.mode import FifeMode +from parpg import components class World(FifeMode, BaseWorld): def __init__(self): FifeMode.__init__(self) BaseWorld.__init__(self) + + def configure(self): + """Configure the game world's components, systems and renderers""" + self.components.behaviour = components.Behavior() + self.components.characterstats = components.CharacterStatistics() + self.components.containable = components.Containable() + self.components.container = components.Container() + self.components.description = components.Description() + self.components.dialog = components.Dialog() + self.components.fifeagent = components.FifeAgent() + self.components.lockable = components.Lockable() + self.components.usable = components.Usable() def pump(self, dt): for component in self.components: