c2ephp

tests/pray-glst.php

Go to the documentation of this file.
00001 <?php
00002 //take off the two unprintable characters after Creatures Evolution Engine - Archived information file. zLib 1.13 compressed.
00003 //require_once(dirname(__FILE__).'/../agents/CreatureHistory.php');
00004 require_once(dirname(__FILE__).'/../agents/PRAYFile.php');
00005 require_once(dirname(__FILE__).'/../support/StringReader.php');
00006 require_once(dirname(__FILE__).'/../support/FileReader.php');
00007 require_once(dirname(__FILE__).'/../support/Archiver.php');
00008 
00009 $agent = new PRAYFile(new FileReader($argv[1]));
00010 $blocks = $agent->GetBlocks(PRAY_BLOCK_GLST);
00011 if(sizeof($blocks) == 0) {
00012     print 'No history blocks! Are you sure this is a creature file?'."\n";
00013 }
00014 $history = $blocks[0]->GetHistory();
00015 
00016 var_dump($history);
00017 
00018 
00019 ?>
 All Classes Files Functions Variables Enumerations