Author: jamit
Date: Sun Feb 24 18:42:29 2013
New Revision: 56406
URL: http://svn.gna.org/viewcvs/wesnoth?rev=56406&view=rev
Log:
Polmorphism for undo actions
The old implementation (a single struct covering all types of actions)
was getting a bit over-extended with the evolution of the kinds of data
being stored. This new approach derives a class for each type of action
and relies on virtual functions to decide what to do.
To support the polymorphism, undo_list's std:vectors have been changed
to boost::ptr_vectors. This has the beneficial side-effect of changing
several struct copies to pointer copies.
Modified:
trunk/src/actions/undo.cpp
trunk/src/actions/undo.hpp
[This mail would be too long, it was shortened to contain the URLs only.]
Modified: trunk/src/actions/undo.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/actions/undo.cpp?rev=56406&r1=56405&r2=56406&view=diff
Modified: trunk/src/actions/undo.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/actions/undo.hpp?rev=56406&r1=56405&r2=56406&view=diff
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits