s3games.io

## Class GameSpecificationParser

- java.lang.Object
- - s3games.io.GameSpecificationParser

-     public class GameSpecificationParser
      extends java.lang.Object

  The parser of the game specification file. The file has the format similar to windows ini-files. Sections are started with [SECTION NAME], and each line is in the variable=value format. An exception is the [EXPRESSIONS] section, which contains free-text expression definitions

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `GameSpecificationParser(Config config, GameLogger logger)` construct an empty parser

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `load(java.lang.String gameName, GameSpecification specs)` load the game specification for the specified game.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### GameSpecificationParser

          public GameSpecificationParser(Config config,
                                 GameLogger logger)

      construct an empty parser

  - ### Method Detail

    - #### load

          public boolean load(java.lang.String gameName,
                     GameSpecification specs)
                       throws java.lang.Exception

      load the game specification for the specified game. The provided argument will be filled with game specification details
      Throws:
        `java.lang.Exception`