Example #1
0
 def create_world(self):
     """Creates the world used by this application"""
     self.world = RPGWorld(self)
     GameVariables.add_callback(self.update_game_variables)
     ScriptingSystem.register_command("set_global_lighting",
                                      self.set_global_lighting,
                                      _SCRIPTING_MODULE)
     ScriptingSystem.register_command("get_global_lighting",
                                      self.get_global_lighting,
                                      _SCRIPTING_MODULE)
     ScriptingSystem.register_command("is_location_in_region",
                                      self.is_location_in_region,
                                      _SCRIPTING_MODULE)
     ScriptingSystem.register_command("is_agent_in_region",
                                      self.is_agent_in_region,
                                      _SCRIPTING_MODULE)
Example #2
0
 def create_world(self):
     """Creates the world used by this application"""
     self.world = RPGWorld(self)
     GameVariables.add_callback(self.update_game_variables)
     ScriptingSystem.register_command("set_global_lighting",
                                      self.set_global_lighting,
                                      _SCRIPTING_MODULE)
     ScriptingSystem.register_command("get_global_lighting",
                                      self.get_global_lighting,
                                      _SCRIPTING_MODULE)
     ScriptingSystem.register_command("is_location_in_region",
                                      self.is_location_in_region,
                                      _SCRIPTING_MODULE)
     ScriptingSystem.register_command("is_agent_in_region",
                                      self.is_agent_in_region,
                                      _SCRIPTING_MODULE)
Example #3
0
def register_script_commands(module=""):
    """Register commands for this module"""
    from fife_rpg.systems.scriptingsystem import ScriptingSystem
    ScriptingSystem.register_command("knows", knows, module)
    ScriptingSystem.register_command("add_knowledge", add_knowledge, module)
Example #4
0
def register_script_commands(module=""):
    """Register commands for this module"""
    from fife_rpg.systems.scriptingsystem import ScriptingSystem
    ScriptingSystem.register_command("move",
                                     approach_and_execute,
                                     module)
Example #5
0
def register_script_commands(module=""):
    """Register commands for this module"""
    from fife_rpg.systems.scriptingsystem import ScriptingSystem
    ScriptingSystem.register_command("knows", knows, module)
    ScriptingSystem.register_command("add_knowledge", add_knowledge, module)
Example #6
0
def register_script_commands(module=""):
    """Register commands for this module"""
    from fife_rpg.systems.scriptingsystem import ScriptingSystem
    ScriptingSystem.register_command("move", approach_and_execute, module)