Difference between revisions of "AI Refactoring2009Crab"
From The Battle for Wesnoth Wiki
m |
|||
Line 8: | Line 8: | ||
formula_ai.hpp | formula_ai.hpp | ||
− | Remove | + | 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) |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Move location of info structure from ai_interface to ai_manager. | Move location of info structure from ai_interface to ai_manager. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Change ai_interface methods to use info() instead of direct access | Change ai_interface methods to use info() instead of direct access |
Revision as of 23:26, 10 April 2009
CURRENT:
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) Move location of info structure from ai_interface to ai_manager. Change ai_interface methods to use info() instead of direct access