mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-09 02:58:28 +00:00
separate animated.cpp in three files...
...to help the editor to not include the unit stuff
This commit is contained in:
parent
06923cb4af
commit
03f576707b
@ -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 \
|
||||
|
@ -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
22
src/animated_editor.cpp
Normal 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
22
src/animated_game.cpp
Normal 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 >;
|
Loading…
x
Reference in New Issue
Block a user