view world.py @ 188:2a12e2843984

Removed bGrease, which is in a seperate repository, here: https://github.com/Beliaar/bGrease
author Beliar <KarstenBock@gmx.net>
date Tue, 27 Mar 2012 13:41:20 +0200
parents 75c0b728ccf3
children 4381be70e1bb
line wrap: on
line source

from bGrease.grease_fife.world import World
from bGrease.component import Component

from bGrease.grease_fife.mode import Mode
from parpg import components
from parpg.components.fifeagent import commands
from parpg.systems import ScriptingSystem
from parpg.entities.action import ACTIONS

class PARPGWorld(World):

    def __init__(self):
        World.__init__(self)
        
    def configure(self):
        """Configure the game world's components, systems and renderers"""
        for name, component in components.components.iteritems():
            setattr(self.components, name, component)
        self.systems.scripting = ScriptingSystem(commands, ACTIONS)