URL:
<http://gna.org/patch/?2599>
Summary: Lua_ai get_aggression(improved)
Project: Battle for Wesnoth
Submitted by: nephro
Submitted on: Wed 23 Mar 2011 08:13:55 PM GMT
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
- Added two helper functions in ai/lua/core.cpp (less code duplication)
- Replaced duplicated code with helper function calls
- Added a function in ai/lua/core.cpp
- Added a line, that registers the new function with the Lua AI engine
Now we can call ai:get_aggression() from Lua, to get the aggression.
Tested in lua_ai scenario, seemed to work fine.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 23 Mar 2011 08:13:55 PM GMT Name: patch_lua_ai.patch Size: 4kB
By: nephro
<http://gna.org/patch/download.php?file_id=12696>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?2599>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs