Changeset 668 for trunk/game/design

11/17/10 21:44:05 (9 years ago)

Ticket #269: Patch by Technomage.

  • Working prototype of the redesigned DialogueEngine? for the upcoming Techdemo2 release; major redesign of the existing DialogueEngine? and YAML dialogue file syntax.
  • Moved the redesigned DialogueEngine? class to the more descriptive module; the DialogueEngine? is now a singleton object and provides all functionality through class methods and attributes, and thus should not be instantiated
  • Abstracted the data structures used to store dialogue data away from the YAML data structures; the relevant classes are stored in the module
  • Abstracted the dialogue commands/actions from the DialogueEngine? code to make modifications and maintenance of dialogue logic easier; the relevant classes are stored in the module
  • The PyYAML loader has been replaced with a more robust YamlDialogueParser? class (see the module) that interfaces with the new dialogue data structure classes and supports the new YAML dialogue file syntax; an OldYamlDialogueParser? class is provided to support reading the old Techdemo1 syntax
  • Removed the existing dialogue validator; runtime dialogue validation is not yet implemented
  • Added the convert_dialogue script, which converts dialogue files in the old Techdemo1 format to the new format; all existing dialogue files have been converted to work with the new parser
  • Added two support modules for the new classes and script:, which provides a Python 2.7-like OrderedDict? class for Python versions 2.4-2.6;, which is a simplified command-line option parser for writing scripts as an alternative to argparse and optparse
  • Updated the script to work with the new DialogueEngine?
  • fixes[s:trac, t:269]
6 added
2 deleted
1 edited

  • trunk

    • Property svn:ignore

        old new  
Note: See TracChangeset for help on using the changeset viewer.