Jérémy Rosen
c9f8ec9472
fix units not facing the right direction when moving
2010-10-29 14:37:49 +00:00
Jérémy Rosen
a23fc36e50
merge the auto_flip and primary, this breaks auto_flip, will fix asap
2010-10-29 14:36:42 +00:00
Mark de Wever
399b22b894
Remove an MSVC 6 hack.
...
Haven't tested with newer MSVC compilers so if it breaks simply revert
this commit.
2010-10-26 21:38:12 +00:00
Mark de Wever
27e459ecdc
Remove unneeded includes.
2010-10-26 21:38:08 +00:00
Jérémy Rosen
cd9bf2ed40
add auto_vflip and auto_hflip animation parameters, partial fix for FR 16365
2010-10-12 14:19:56 +00:00
Jérémy Rosen
54edc1335e
add two new animation parameters : directional_x and directional_y
2010-10-02 10:26:29 +00:00
Guillaume Melquiond
eeb047de55
Fixed file headers so that they match the content of the COPYING file.
2010-09-01 21:12:38 +00:00
Mark de Wever
a99c78e0d8
Update doxygen comment.
...
The filename after the @file comment is optional (spotted by alink).
2010-07-26 21:32:18 +00:00
Jérémy Rosen
5acc6aeb91
allow anim-override to overide the image mode,
...
...use it to use greyscale on ghosted units. This will most likely be
tweaked further
2010-07-09 19:24:48 +00:00
Ali El Gariani
694617b322
clean some include
2010-05-09 14:51:09 +00:00
Mark de Wever
613e5d700f
Make a member function a const member function.
...
Issue found by cppcheck.
2010-05-01 18:18:54 +00:00
Mark de Wever
1feca0d9c8
Make a member function a const member function.
...
Issue found by cppcheck.
2010-04-28 19:28:03 +00:00
Mark de Wever
92f5f92ce5
New year copyright update.
2010-01-01 13:16:49 +00:00
Jérémy Rosen
c275f68f82
rework the animation parameters logic to avoid...
...
...multiple useless parsing of WML fix bug #14824
2009-11-25 21:20:02 +00:00
Ali El Gariani
6be85c276f
Use reference for image::locator (not so small structure)
2009-05-17 22:58:46 +00:00
Jérémy Rosen
f291c96c1b
various animation optimisation...
...
...(cache result of overlap calculation + better initialization of
image::locator)
2009-05-11 21:04:37 +00:00
Guillaume Melquiond
14abb2f0f4
The dependency graph of Wesnoth is plain idiotic.
...
As if pathfind.cpp needed to depend on font.hpp...
2009-05-01 16:14:33 +00:00
Mark de Wever
1da642d585
Initialize all members.
2009-04-19 15:05:17 +00:00
Ali El Gariani
247520e0d4
Simplify and optimize the in_hex caching by remove it from amimation code...
...
...and instead implement it like other image caches (but just storing bool)
This allow to load and scan images only when needed.
Also fix a tiny bug when using :refresh after modifiying sprite's size.
2009-04-12 12:08:21 +00:00
Jérémy Rosen
99015519a0
reimplement the in_hex logic in animations,
...
...no WML changes needed anymore, in hex is automatically detected for
all animations
2009-03-25 17:45:13 +00:00
Jérémy Rosen
4a8bfd3adc
apply patch 1134, code half.
...
WML half will come later, and once both are ready and heavily tested,
we can backport to 1.6
2009-03-20 19:16:10 +00:00
Jérémy Rosen
ef34ffefbe
fix a bug in the unit layering code,
...
...this makes bug #12867 more visible (units are not properly drawn
under keeps) will look with mordant at the layering bug later
2009-01-26 19:55:53 +00:00
Mark de Wever
a5d1d2e969
New year copyright update.
2009-01-01 10:27:41 +00:00
Jérémy Rosen
e698db65ed
fix problems with haloes being sometime displayed twice...
...
...and/or incorrectly flipped
2008-11-26 22:18:07 +00:00
Jérémy Rosen
5ee43b4ae1
rework ordering of layers and animation engine to use them.
...
this also solves missiles not being on top. any ordering bugs should
be assigned to me
2008-10-31 21:58:37 +00:00
Tomasz Śniatowski
01e504ede6
remove some map.hpp dependencies,
...
...also separated viewpoint and map_exception classes from map.hpp
into separate headers (no cpp files)
2008-10-17 17:53:08 +01:00
Tomasz Śniatowski
c54a538139
Refactor gamemap::location -- rename to map_location,
...
...move into separate cpp/hpp pair. The code under src/ was modified
mainly using a global search-and-replace. This change allows reducing
code dependencies and gets rid of inner-class confusion (parts of the
code had to use "location" when referring to gamemap::location, it is
now consistent across the codebase.)
2008-10-15 17:38:51 +01:00
Jérémy Rosen
7259fc8a7f
redo unit invalidation, this is still a tad bumpy,
...
...but ilor needs this commit to work on the editor
2008-06-14 08:45:32 +00:00
Mark de Wever
7840b53efa
Update doxygen comment style.
2008-05-22 16:32:19 +00:00
Jérémy Rosen
58f667c658
use the same mechanism for invalidation for unit particle and other particles
2008-05-19 21:03:40 +00:00
Jérémy Rosen
c8dd8e4c9f
generalize the way TC is handled,
...
...as a side effect, we have an image_mod= parameter that can be put
both at [frame] and [animation] level and will be applied to the
image(s) of the block
2008-05-19 18:03:25 +00:00
Jérémy Rosen
fe4445d4dc
reimplement parameter passing between the different layers of animation.
...
as a side efffect fix bug #10820 (poisoned unit don't display select
anim) and fix bug #10890 (projectiles don't follow unit_height_adjust)
2008-04-20 12:44:53 +00:00
Jérémy Rosen
57b6e02b29
sub frames of animations now handle their own invalidation.
...
They are not limited in placement or size anymore. Not that the main
unit frame still has the limitation. Please don't abuse this feature
since i'll remove the limitation to the main frame eventually
2008-04-04 18:25:27 +00:00
Jérémy Rosen
1f9c122674
add two new progressive parameters for animations : x and y.
...
notice that refresh rules still apply, unit shall not leave their
redraw zone. This can be applied to all types of frames in the usual
ways
2008-03-20 21:43:50 +00:00
Jérémy Rosen
a82b592ae5
new animation parameter: submerge.
...
Not really useful, but needed for future refactoring
2008-03-20 20:37:38 +00:00
Jérémy Rosen
219b163fc9
have frame parameters returned as a big struct,
...
...so future changes are waaaay simpler
2008-03-16 17:55:57 +00:00
Jérémy Rosen
9840d115fa
move the drawing code down into the frame object
2008-03-14 18:41:51 +00:00
Jérémy Rosen
473acf08a7
improve the use of named parameters
2008-03-12 19:03:45 +00:00
Jérémy Rosen
5b17da78cc
use named parameters to simplify unit_frame creation. crude_animation is next
2008-03-09 11:33:15 +00:00
Mark de Wever
001af46e6e
Updated all headers to 2008.
2008-02-16 08:47:16 +00:00
Jérémy Rosen
4d09f05618
fix animation wide color blending not working properly
2008-01-28 22:59:58 +00:00
Jérémy Rosen
2e83d2f3a0
fix blend_with not working at frame level
2008-01-18 20:15:52 +00:00
Jérémy Rosen
5aba45d829
first go at the new animation API, still a WIP.
...
No regression expected. if anything changes, please tell me.
Note that:
* Fire and forget doesn't work yet, don't try using it
* I will probably change how mvt anims work as discussed in IRC, but
that's for a future commit
2007-12-17 17:51:36 +00:00
Jérémy Rosen
4403daa2e0
more moving around of backward compatibility stuff
2007-11-02 18:50:35 +00:00
Jérémy Rosen
366f1b9b55
allow animation level progressive parameters.
...
This should simplify backward compatibilty code greatly...
2007-10-12 17:17:16 +00:00
Jérémy Rosen
930aea69fd
even cleaner way to do that
2007-10-05 21:12:45 +00:00
Jérémy Rosen
f163feee4a
how could I commit such horrible code in the first place ???
2007-10-05 20:45:37 +00:00
Gunter Labes
ae9e10f260
codeclean run
...
set svn:eol-style to native where missing
2007-08-31 19:09:40 +00:00
Hans Joachim Gurt
9dd8da4ba4
doxygen, comments
2007-08-27 05:07:07 +00:00
Mark de Wever
080eb69f60
Updated the headers to state GPL 2+ and a few changelog cleanups.
2007-08-15 13:41:56 +00:00