URL:
  <http://gna.org/patch/?1019>

                 Summary: Support for scripting function definitions in
FormulaAI
                 Project: Battle for Wesnoth
            Submitted by: dhains
            Submitted on: Saturday 03/22/2008 at 07:51
                Priority: 3 - Low
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:


Function definitions can now be defined in sequence if separated by a ';' and
may be followed by a formula.  This means a 'script' of functions may be made
followed by a formula using these functions.

Example:

def adder(x,y) x + y; def sub(a,b) a - b; adder(1,2) * sub(4,2)

will return the value 6.

This functionality can be tested by directly in the formula AI debugger.







    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Saturday 03/22/2008 at 07:51  Name: semi.patch  Size: 3kB   By: dhains

<http://gna.org/patch/download.php?file_id=4020>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?1019>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to