Difference between revisions of "SummerOfCodeProposal AI Improvement Crab AI Game Interface"

From The Battle for Wesnoth Wiki
m (categorizing)
Line 12: Line 12:
return back to [[SummerOfCodeProposal_AI_Improvement_Crab#AI_Module|Summer Of Code Proposal of Crab]]
return back to [[SummerOfCodeProposal_AI_Improvement_Crab#AI_Module|Summer Of Code Proposal of Crab]]
[[Category:Summer of Code]]

Latest revision as of 03:22, 6 March 2011

Game Interface from the point of view of the AI

This class will handle two main tasks: - tell the AI about current game state (a task that is now done by ai_interface:info ) - allow the AI to make gamestate-changing actions (movement, attacking ) and see their result. - don't allow the AI to crash the game if it tries to do anything stupid.

Encapsulating those 'state-changing' functions in one place (and making the rest of the ai implementation code strictly-readonly in regards to the game state) will allow us to make interface between the AI and the game simpler, thus preventing many bugs which are connected with the AI executing some forbidden maneuver (such as a 'move to occupied square).


return back to Summer Of Code Proposal of Crab

This page was last edited on 6 March 2011, at 03:22.