Ignore:
Timestamp:
12/10/10 19:11:29 (9 years ago)
Author:
technomage
Message:

Patch by Technomage

  • Refactored the DialogueEngine? singleton into the DialogueProcessor? instance factory, eliminating some of the problems the singleton pattern caused with encapsulation and unit testing.
  • Renamed the dialogueengine.py module to dialogueprocessor.py for clarity.
  • Added type-checking code to the instance variables defined by the DialogueProcessor? and Dialogue classes using assert statements that are removed when the optimization '-O' flag is passed to the Python interpreter.
  • Moved the 'main' logic in dialogue_demo.py script into a 'main' method to avoid cluttering the module namespace with runtime variables.
  • Fixed a few code documentation issues pointed out by aspidites.
Location:
trunk/game
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/game

    • Property svn:ignore
      •  

        old new  
        55settings-old.xml 
        66settings.xml 
         7config.py 
  • trunk/game/scripts/dialogueactions.py

    r680 r684  
    2121import logging 
    2222 
    23 def setup_logging(): 
     23def setupLogging(): 
    2424    """Set various logging parameters for this module.""" 
    2525    module_logger = logging.getLogger('dialogueaction') 
    2626    if __debug__: 
    2727        module_logger.setLevel(logging.DEBUG) 
    28 setup_logging() 
     28setupLogging() 
    2929 
    3030class DialogueAction(object): 
Note: See TracChangeset for help on using the changeset viewer.