Package org.jpacman.framework.factory

Examples of org.jpacman.framework.factory.MapParser


   * Create the standard factory and parser.
   */
  @Before
  public void setUp() {
    IGameFactory factory = new DefaultGameFactory();
    parser = new MapParser(factory);
  }
View Full Code Here


   * @throws FactoryException If file can't be read.
   */
  public IGameInteractor parseMap() throws FactoryException {
    assert mapFile != null;
    assert gameFactory != null;
    MapParser parser =
        new MapParser(gameFactory);
    parseResult = parser.parseFromFile(getMapFile());
    return parseResult;
  }
View Full Code Here

   * @param singleRow String representation of one row
   * @throws FactoryException If singleRow contains illegal chars.
   * @return The game created while parsing the row.
   */
  protected Game makePlay(String singleRow) throws FactoryException {
    MapParser p = new MapParser(makeFactory());
    Game theGame = p.parseMap(new String[]{singleRow});
    return theGame;
  }
View Full Code Here

TOP

Related Classes of org.jpacman.framework.factory.MapParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.