Mercurial > skaapsteker
changeset 195:445a28f4b38e
Fix npc tester.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Wed, 06 Apr 2011 22:04:19 +0200 |
parents | 7a4e7859bc26 |
children | a4c4e2f34162 |
files | scripts/npc-test |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/npc-test Wed Apr 06 21:54:54 2011 +0200 +++ b/scripts/npc-test Wed Apr 06 22:04:19 2011 +0200 @@ -9,11 +9,13 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) from skaapsteker.dialogue import DSM, DsmEvent, DummyWorld +from skaapsteker.gamestate import GameState def run(npc_file): - world = DummyWorld() - dsm = DSM(npc_file, world) + game = GameState("game.json") + name = os.path.splitext(os.path.basename(npc_file))[0] + dsm = DSM(name, game.world, npc_file) print "States:" print "-------" @@ -47,4 +49,4 @@ run(args[0]) if __name__ == '__main__': - main() \ No newline at end of file + main()