URL: <http://gna.org/patch/?1014>
Summary: Added 'functions' keyword to FormulaAI Project: Battle for Wesnoth Submitted by: dhains Submitted on: Thursday 03/20/2008 at 00:07 Priority: 1 - Later Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: A new token was added to the formula AI tokenizer, TOKEN_KEYWORD. A new keyword was added named 'functions'. This keyword returns a list of the function names of *custom* functions available to the AI. It currently does not support the built-in functions. It can be tested by setting the formula AI in data/scenario-formula.cfg to human controlled and starting wesnoth with wesnoth --test formula --debug. Using 'f' to enter formula debug command prompt, typing functions should result in an empty list on the non-formula AI's turn and a list of the custom functions defined in data/scenario-formula.cfg on the formula AI's turn. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Thursday 03/20/2008 at 00:07 Name: formulaAI_functionlist.patch Size: 5kB By: dhains <http://gna.org/patch/download.php?file_id=3999> _______________________________________________________ Reply to this item at: <http://gna.org/patch/?1014> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Wesnoth-bugs mailing list Wesnoth-bugs@gna.org https://mail.gna.org/listinfo/wesnoth-bugs