Difference between revisions of "AI Refactoring2009Crab"

From The Battle for Wesnoth Wiki
m (CURRENT:)
m
Line 1: Line 1:
=CURRENT:=
+
= DONE =  
ai_interface.hpp
 
ai.cpp
 
ai.hpp
 
ai_manager.cpp
 
ai_manager.hpp
 
formula_ai.cpp
 
formula_ai.hpp
 
  
Remove info parameter from ai constructor (it will still be gettable through .get_info(), even in constructor, for all is needed to get it is 'side' and static 'ai_manager' method)
+
[http://svn.gna.org/viewcvs/wesnoth?rev=34705&view=rev r34705] AI Refactoring. Extracted 'team number' and 'master' from ai_interface::info. This makes ai_interface::info ai-independent and allows to push it out of ai.
Move location of info structure from ai_interface to ai_manager.
+
 
Change ai_interface methods to use get_info() instead of direct access
+
[http://svn.gna.org/viewcvs/wesnoth?rev=34719&view=rev r34719] AI Refactoring: removed unused turn_data_ from ai_interface::info
 +
 
 +
[http://svn.gna.org/viewcvs/wesnoth?rev=34720&view=rev r34720] AI Refactoring: Moved location of ai_interface::info to ai_manager. Now using a single copy of ai_interface::info for all AIs, and using get_info() accessor to get it from AIs. Also, fixed side to be unsigned int where it is possible.
 +
 
 +
[http://svn.gna.org/viewcvs/wesnoth?rev=34723&view=rev r34723] AI Refactoring: changed 'team' to 'side' when it means 'side number that starts from 1'.

Revision as of 16:34, 11 April 2009

DONE

r34705 AI Refactoring. Extracted 'team number' and 'master' from ai_interface::info. This makes ai_interface::info ai-independent and allows to push it out of ai.

r34719 AI Refactoring: removed unused turn_data_ from ai_interface::info

r34720 AI Refactoring: Moved location of ai_interface::info to ai_manager. Now using a single copy of ai_interface::info for all AIs, and using get_info() accessor to get it from AIs. Also, fixed side to be unsigned int where it is possible.

r34723 AI Refactoring: changed 'team' to 'side' when it means 'side number that starts from 1'.