Initial game engine.

This commit is contained in:
Marshall
2012-03-31 14:15:50 -04:00
parent ccf8038f05
commit 2954041e89
167 changed files with 2 additions and 13150 deletions

View File

@@ -1,14 +0,0 @@
package dk.itu.mario.level;
import static org.junit.Assert.*;
import org.junit.Test;
public class MyLevelTest {
@Test
public void test() {
fail("Not yet implemented");
}
}

View File

@@ -1,25 +0,0 @@
package dk.itu.mario.level.grammar;
import static org.junit.Assert.assertNotNull;
import java.io.File;
import org.junit.Test;
public class LevelGrammarFactoryTest {
@Test
public void testCreateGrammar() {
LevelGrammar levelGrammar = LevelGrammarFactory.createGrammar();
assertNotNull(levelGrammar);
System.out.println(levelGrammar.toString());
}
@Test
public void testReadFile() throws Exception {
File grammarFile = new File("grammars/overland.grm");
LevelGrammar levelGrammar = LevelGrammarFactory.createGrammar(grammarFile);
assertNotNull(levelGrammar);
System.out.println("Read Grammar from file:");
System.out.println(levelGrammar.toString());
}
}