Class RulesReader


  • public class RulesReader
    extends java.lang.Object
    DOCUMENT-ME
    Version:
    $Revision: 305 $
    Author:
    $Author: $
    • Constructor Summary

      Constructors 
      Constructor Description
      RulesReader()
      Creates a new RulesReader object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Rules readRules​(java.lang.String name)
      Reads the rules of the given gamedata.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RulesReader

        public RulesReader()
        Creates a new RulesReader object.
    • Method Detail

      • readRules

        public Rules readRules​(java.lang.String name)
        Reads the rules of the given gamedata. Right now it first tries to read it from an xml. If this fails it possibly reads the cr.
        Returns:
        The rules for the given name. If all else fails, an empty rules object is returned.