Difference between revisions of "AI Refactoring2009Crab"

From The Battle for Wesnoth Wiki
m
Line 1: Line 1:
 
=CURRENT:=
 
=CURRENT:=
  
ai_manager
 
 
  ai_interface.hpp
 
  ai_interface.hpp
 +
ai_manager.cpp
 +
ai_manager.hpp
  
Move location of info structure from ai_interface to ai_holder (inside ai_manager)
+
Move location of info structure from ai_interface to ai_holder (inside ai_manager) (still settable through ai_interface constructor)
  
 
=NEXT:=
 
=NEXT:=
 
  ai_interface.hpp
 
  ai_interface.hpp
@deprecate getInfo and add info() to ai_interface
+
@deprecate get_info and add info() to ai_interface.
  
 
=NEXT:=
 
=NEXT:=
 
  ai.cpp
 
  ai.cpp
Change ai_interface methods to use info()
+
ai_interface.hpp
 +
Change ai_interface methods to use info() instead of direct access
 +
 
 +
=NEXT:=
 +
add 'int side' parameter to ai constructor
 +
remove info parameter from ai constructor (it will still be gettable through .info(), even in constructor, for all is needed to get it is 'side' and static 'ai_manager' method)

Revision as of 11:22, 10 April 2009

CURRENT:

ai_interface.hpp
ai_manager.cpp
ai_manager.hpp

Move location of info structure from ai_interface to ai_holder (inside ai_manager) (still settable through ai_interface constructor)

NEXT:

ai_interface.hpp

@deprecate get_info and add info() to ai_interface.

NEXT:

ai.cpp
ai_interface.hpp

Change ai_interface methods to use info() instead of direct access

NEXT:

add 'int side' parameter to ai constructor
remove info parameter from ai constructor (it will still be gettable through .info(), even in constructor, for all is needed to get it is 'side' and static 'ai_manager' method)