25 Commits

Author SHA1 Message Date
Fabian Müller
6d1e001800 Cleaned up the joystick code.
Introduced a deadzone to avoid random scrolling.

Reduced the map_location::direction enum to the original one.
2011-06-21 15:14:23 +00:00
Fabian Müller
d04fa3be80 Basic Joystick support. 2011-06-20 23:33:10 +00:00
Anonymissimus
6f4535ac88 Fixed map_location::matches_range treating minus signs as separating dashes of coordinate ranges (fix for bug #17854). 2011-03-15 00:08:43 +00:00
Mark de Wever
ecbabea838 New year copyright update. 2011-01-01 15:57:50 +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
9ab08441cb Remove an unused function.
Issue found by cppcheck.
2010-08-29 20:13:23 +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
Guillaume Melquiond
c93156efd0 Simplified code by removing string casts. 2010-04-05 06:01:16 +00:00
Mark de Wever
92f5f92ce5 New year copyright update. 2010-01-01 13:16:49 +00:00
Ali El Gariani
ee467ecfb3 Save unit's waypoints (because we save goto)...
...in [waypoints] x=1,2,... y=1,2,..

Note that if a WML event changes the goto then waypoints are
discarded.  This is done by adding an extra last waypoint equal to
goto for consistency check (removed when loading), so WML can still
edit them if needed.
2009-12-22 17:33:00 +00:00
Ali El Gariani
60daaf0f8d Improve 2009-11-29T21:16:16Z!alinkmaze@gmail.com by using location ranges...
...for saving ToD areas created by event
2009-12-02 18:53:37 +00:00
Mark de Wever
4145e09e1f Remove an unneeded include. 2009-11-27 23:00:48 +00:00
Ali El Gariani
1cdf95e5ab add a debug function to print a vector of locations 2009-11-21 17:54:38 +00:00
Jérémy Rosen
49db3512ee improve healing order, patch by BBT 2009-10-25 16:27:33 +00:00
Guillaume Melquiond
d8511388ab Passed border information from terrain_filter to parse_location_range. 2009-10-17 17:42:38 +00:00
Guillaume Melquiond
5570681bdf Restricted location ranges to map tiles. (Fix for bug #14538.) 2009-10-17 17:07:17 +00:00
Ali El Gariani
0984328cb0 Move some simple common map_location functions from pathutils.hpp...
...to map_location.hpp where they more clearly belongs. Allow to
simplify some includes.
2009-08-31 12:59:22 +00:00
Guillaume Melquiond
36fb3a75db Removed unused function map_location::legacy_difference_assigns. 2009-08-15 12:00:58 +00:00
Ali El Gariani
19f80e074e Fix bug #13118 (OoS with hidden units, mainly with AI)
Now store and send the path used (using x=x1,x2,.. and y=y1,y2.. in [move])

This currently break compatibility with replay done with RC1 (if they worked)

I will try to restore backward compatibility in next commit.

PS: This commit is a small variation of the patch posted in the bugreport
2009-03-06 22:40:59 +00:00
Guillaume Melquiond
eb40d513df Add missing include. 2009-02-08 13:31:56 +00:00
Mark de Wever
a5d1d2e969 New year copyright update. 2009-01-01 10:27:41 +00:00
Sergey Popov
495f481fdf Split off formula_string_utils from string_utils.
Break the dependency of string_utils.cpp on formula ai since it pulls
in practically everything else as result. Since servers use
string_utils.cpp this is unacceptable.
2008-12-21 15:26:11 +00:00
Eric S. Raymond
9223460daa Remove unused headers. 2008-11-09 04:35:13 +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