separate animated.cpp in three files...

...to help the editor to not include the unit stuff
This commit is contained in:
Jérémy Rosen 2007-06-30 07:40:34 +00:00
parent 06923cb4af
commit 03f576707b
4 changed files with 47 additions and 10 deletions

View File

@ -50,7 +50,7 @@ wesnoth_SOURCES = \
ai_attack.cpp \
ai_move.cpp \
ai_python.cpp \
animated.cpp \
animated_game.cpp \
astarnode.cpp \
attack_prediction.cpp \
basic_dialog.cpp \
@ -167,7 +167,7 @@ wesnoth_editor_SOURCES = \
editor/editor_undo.cpp \
about.cpp \
actions.cpp \
animated.cpp \
animated_editor.cpp \
astarnode.cpp \
basic_dialog.cpp \
builder.cpp \
@ -436,6 +436,7 @@ noinst_HEADERS = \
about.hpp \
unit.hpp \
animated.hpp \
animated.i \
mapgen_dialog.hpp \
marked-up_text.hpp \
ai_dfool.hpp \

View File

@ -273,11 +273,3 @@ int animated<T,T_void_value>::get_end_time() const
return frames_.back().start_time_ + frames_.back().duration_;
}
// Force compilation of the following template instantiations
#include "unit_frame.hpp"
#include "image.hpp"
template class animated< image::locator >;
template class animated< std::string >;
template class animated< unit_frame >;

22
src/animated_editor.cpp Normal file
View File

@ -0,0 +1,22 @@
/* $Id: animated_editor.cpp 18467 2007-06-27 18:18:16Z boucman $ */
/*
Copyright (C) 2007 by Jeremy Rosen <jeremy.rosen@enst-bretagne.fr>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY.
See the COPYING file for more details.
*/
#include "animated.i"
// Force compilation of the following template instantiations
#include "unit_frame.hpp"
#include "image.hpp"
template class animated< image::locator >;
template class animated< std::string >;
template class animated< unit_frame >;

22
src/animated_game.cpp Normal file
View File

@ -0,0 +1,22 @@
/* $Id: animated_game.cpp 18467 2007-06-27 18:18:16Z boucman $ */
/*
Copyright (C) 2007 by Jeremy Rosen <jeremy.rosen@enst-bretagne.fr>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY.
See the COPYING file for more details.
*/
#include "animated.i"
// Force compilation of the following template instantiations
#include "unit_frame.hpp"
#include "image.hpp"
template class animated< image::locator >;
template class animated< std::string >;
template class animated< unit_frame >;