Charles Dang
f4fda31707
Map Location: convert direction to a scoped enum
2024-10-10 22:57:23 -04:00
pentarctagon
970163813d
2024 copyright update
2024-01-20 22:22:23 -06:00
Pentarctagon
c44cc2742e
Copyright update..
2023-04-29 10:48:11 -05:00
Pentarctagon
340023921d
2022 copyright update.
2022-03-06 19:07:13 -06:00
Pentarctagon
57ce449af8
Re-add attribution to copyright notices.
...
These are mostly useless and outdated/wrong, but apparently it's probably illegal to remove them.
2021-07-27 20:21:38 -05:00
Pentarctagon
ba75e1af50
Copyright update.
...
This additionally:
* Makes all copyright notices identical aside from the starting year for Wesnoth-specific source files. Files not included: mariadbpp, lua, spirit po, xbrz, and bcrypt (crypt_blowfish).
* Removes all attribution from the files, since the vast majority of them are outdated or seemingly just outright incorrect. For example, I would guess that Dave is no longer the sole author of the majority of Wesnoth's current code.
2021-07-26 11:38:03 -05:00
Charles Dang
c97d2cb6fb
Several misc cleanups
2021-01-29 14:03:15 +11:00
Charles Dang
4a3be684f4
Removed trailing tabs and whitespaces from C++ source
...
[ci skip]
I ran the same command from 9b7b1751fd
.
Excludes:
* lua/
* spirit_po/
2019-08-04 22:31:10 +11:00
gfgtdf
e0234608ae
fix pathfind code dublication.
2018-10-20 13:29:30 +02:00
Martin Hrubý (hrubymar10)
674fda85b7
Migrate links to https if available - Fwd c18537edc0
...
(cherry-picked from commit bc4d22dc72
)
2018-10-07 03:23:36 +00:00
Charles Dang
45f871067f
Use std::size_t everywhere instead of plain size_t
...
Excludes:
* spirit_po/
* xBRZ/
(cherry-picked from commit fc2a58f693
)
2018-10-07 03:17:59 +00:00
Charles Dang
950a156712
Addressed most of the remaining whitespace issues from #2613
...
[ci skip]
2018-03-11 14:59:37 +11:00
Charles Dang
e270a7c665
Formatting cleanup: > >
to '>>`
...
Allowed since C++11. Might as well use it everywhere.
2018-02-21 12:11:21 +11:00
Charles Dang
ae53a38835
Use std::array for adjacent map_location arrays
...
I left the implementation of get_adjacent_tiles using messy C ptr arithmetic
since it most simply accounts for a few cases using arrays that are larger than
6 (such as in tod_manager) or underlying vector storage.
Also made use of std::array::size where applicable, and one case of std::array
iterators.
aspect_attacks_base::analyze_targets was changed to take a adjacent_loc_array_t
reference.
2018-02-20 11:33:51 +11:00
Matthias Krüger
a2168d2e24
codespell fixes to /src
2018-02-08 21:54:09 +11:00
Charles Dang
f23305f7e2
Formatting cleanup: T const& -> const T&
2018-01-23 01:26:23 +11:00
Gregory A Lundberg
b5f76eff79
Bump copyright to 2018
2018-01-19 00:02:20 -06:00
Celtic Minstrel
b4dc11ce36
Belated 2017 copyright update
2017-03-19 10:05:38 -04:00
Charles Dang
e22c8967ee
Cleaned up global.hpp includes
2016-12-17 15:21:04 +11:00
Celtic Minstrel
ca382018b7
BOOST_FOREACH -> range for
2016-04-02 09:38:29 -04:00
Celtic Minstrel
bc711f5f43
Consolidate related files into subdirectories
2016-03-20 16:20:09 -04:00
Chris Beck
ba51524f6e
update copyright to year 2016
...
using this shell script:
find src -type f -print0 | xargs -0 sed -i "s|Copyright (C) \([[:digit:]]*\)\([ ]*\)-\([ ]*\)2015|Copyright (C) \1\2-\32016|g"
2016-01-02 23:59:31 -05:00
Ignacio R. Morelle
57ae45387a
New Year copyright update
2015-01-01 19:07:35 -03:00
Chris Beck
c5838b9513
inline the definition map_location::null_location
...
If we decided it was worth it to inline map_location ==, then
surely this is also worth it to inline null_location, as the
compiler may be able to reduce tests for == null location to
"x == ... && y == ...", without having to move to a different
compilation unit.
2014-05-20 10:42:13 -04:00
Ignacio R. Morelle
a4f47a63c7
New Year copyright update
2014-01-01 02:08:52 -03:00
Eric S. Raymond
043c4f9fd3
Remove $Id$ cookies.
2013-03-26 21:41:37 -04:00
Mark de Wever
43b71f2ff0
New year copyright update.
2013-01-01 09:22:03 +00:00
J. Tyne
8177d0804c
Adding some comments for my algorithm. This includes revised complexity notes.
2012-07-08 17:49:43 +00:00
J. Tyne
459f96fd16
Remove some complexity notes I had made for my own reference.
2012-07-07 14:59:50 +00:00
J. Tyne
156a07e8d6
Adding a special-case implementation of get_tiles_radius()...
...
...for when there is no radius filter.
2012-07-07 14:46:03 +00:00
J. Tyne
2a47eb209e
A few small readability and efficiency tweaks.
2012-07-07 13:54:24 +00:00
J. Tyne
6b7d4e1f56
Make the single-location version of get_tiles_radius()...
...
...simpler and more efficient.
2012-07-06 02:43:53 +00:00
J. Tyne
5e03725bcd
More documentation updates,
...
...plus more meaningful parameter names and adding a const qualifier.
2012-07-05 02:12:13 +00:00
J. Tyne
325fd5be86
Tidying up some files.
...
- Ordering functions in the .hpp to match the .cpp.
- Cleaning up the functions' documentation and copying that to the .cpp.
2012-07-01 03:19:52 +00:00
J. Tyne
560b5cb2fd
Terrain filters respect "with_border" for their radius...
...
...(as well as for everything else).
2012-04-03 23:45:08 +00:00
Ignacio R. Morelle
6ca69b2df5
New year copyright update
2012-01-07 02:35:17 +00:00
Alexander van Gessel
81e0a2007f
Revert token t_token commits from 2011-09-08T19:15:40Z!thonsew@yahoo.com on.
2011-10-10 03:43:29 +01:00
Thonsew
fcba175936
Updated terrain_filter to
...
1. Use t_token in place of string literals to improve speed
2. Use unordered_set in place of std::set to improve terrain filter
lookup times.
2011-09-08 19:16:12 +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
a99c78e0d8
Update doxygen comment.
...
The filename after the @file comment is optional (spotted by alink).
2010-07-26 21:32:18 +00:00
Mark de Wever
92f5f92ce5
New year copyright update.
2010-01-01 13:16:49 +00:00
Mark de Wever
eec0cb381c
Remove an unneeded include.
2009-12-05 21:25:13 +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
Ali El Gariani
1f32116d33
Regroup similar utility fonctions in pathutils.?pp where they clearly belong.
...
Remove or simplify some include of pathfind.hpp
2009-08-29 17:25:53 +00:00
Mark de Wever
a5d1d2e969
New year copyright update.
2009-01-01 10:27:41 +00: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
Mark de Wever
81c6a850ab
MSVC 6 cleanup.
...
Now that MSVC 6 is no longer supported start to remove some helper code
to work around problems in that compiler. The first step is to comment
out the code and replace it with new helper code that uses the standard.
The second step is to remove the helper code and fix all callers.
Patch 2/3 for step 2: Remove minimum and maximum and fix all callers.
2008-08-24 16:12:13 +00:00
Mark de Wever
5d0255676c
Update doxygen comment style.
2008-06-17 18:10:51 +00:00
Eric S. Raymond
f9dab4a0f4
Apply cjhopman's patch #1041 to fix bug #11418 .
2008-04-03 12:51:36 +00:00