63 Commits

Author SHA1 Message Date
shijie.chen
d88ddec6f1
Remove unnecessary header files (#8531)
Co-authored-by: shijie.chen <shijie.chen@goland.cn>
2024-03-12 00:07:48 -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
Celtic Minstrel
0970880910 whitespace fixes 2021-05-11 14:52:22 -04:00
Celtic Minstrel
dddd551765 Add an audio module 2021-05-11 14:52:17 -04:00
Martin Hrubý (hrubymar10)
674fda85b7 Migrate links to https if available - Fwd c18537edc0678f40a209797d72dfaba3e5e88545
(cherry-picked from commit bc4d22dc72e79c3d6a3364ac896e473afd298246)
2018-10-07 03:23:36 +00:00
Gregory A Lundberg
b5f76eff79
Bump copyright to 2018 2018-01-19 00:02:20 -06:00
Charles Dang
2101353d36 Convert include guards to the shorter #pragma once
Turns out I mistook @celticminstrel's opinion that we should use include guards over pragma (737916e).
Since all major compilers support `#pragma once`, there's no reason not to use it.

For future mergability reasons, this excludes src/spirit_po and src/xBRZ. It also excludes src/boost-patched.
2017-05-09 19:41:37 +11:00
Rikard Falkeborn
94e73a7ccc Add const to some more functions 2017-04-17 16:51:30 +11:00
gfgtdf
e4926328f9 use std::scoped_ptr where appropriate 1 2017-04-14 13:48:35 +02:00
Celtic Minstrel
b4dc11ce36 Belated 2017 copyright update 2017-03-19 10:05:38 -04:00
Charles Dang
71b154b6e3 Refactored out savegame::savegame_config class
This was basically an unnecessary stub class. It also allows us to
remove the unused soundsource::manager::to_config() function (write_sourcespecs()
did the actual job).
2016-04-05 18:10:44 +11:00
Celtic Minstrel
5cf12798ce Port "trivial" WML tags to Lua
This is more about adding Lua API for things that should have it than porting WML tags to Lua.
The following new Lua API functions have been added to the wesnoth table:
- add_fog, remove_fog
- add_sound_source, remove_sound_source, get_sound_source
- log
2016-04-05 02:24:42 -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
Ignacio R. Morelle
a4f47a63c7 New Year copyright update 2014-01-01 02:08:52 -03:00
fendrin
fa86e2e350 Fix some wrong spelling, mostly in comments. 2013-06-23 17:18:49 +02: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
Ignacio R. Morelle
6ca69b2df5 New year copyright update 2012-01-07 02:35:17 +00:00
Mark de Wever
ecbabea838 New year copyright update. 2011-01-01 15:57:50 +00:00
Mark de Wever
109ef4266f Remove unneeded includes. 2010-11-21 13:57:48 +00:00
Ignacio R. Morelle
d6a3de1938 Apply patch #2213 by stikonas, using file #11274 2010-11-21 01:56: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
Guillaume Melquiond
56b384ff88 Simplified code by removing string casts. 2010-04-05 06:01:23 +00:00
Mark de Wever
92f5f92ce5 New year copyright update. 2010-01-01 13:16:49 +00:00
Guillaume Melquiond
be32933321 Removed unused members sound_source::*::add_location. 2009-10-10 16:19:45 +00:00
Karol Nowak
779bb863c5 First cut at adding check_shrouded= support to sound sources. 2009-09-06 22:16:04 +00:00
Eugen Jiresch
b555c8d6a1 added namespace 'savegame' for savegame related code 2009-09-01 12:49:15 +00:00
Karol Nowak
b1f514e47a Don't update volume of global sound sources when scrolling. 2009-07-11 21:41:35 +00:00
Eugen Jiresch
919e8df58e added const modifier to savegame_config::to_config() 2009-06-23 14:05:03 +00:00
Eugen Jiresch
c6b30bb5ca changed the name of the function toConfig() to to_config() 2009-06-03 19:14:48 +00:00
Eugen Jiresch
cb3359ea88 savegame reorganization: implemented savegame_config for soundsources::manager 2009-06-03 09:07:31 +00:00
Mark de Wever
973a0a7d5c Remove trailing whitespace. 2009-01-01 10:28:26 +00:00
Mark de Wever
a5d1d2e969 New year copyright update. 2009-01-01 10:27:41 +00:00
Ignacio R. Morelle
ddb9c8301a [[WML engine improvements]]
* Rewrote the experimental WML write interface. Now it is finished
  and ready for real use.
* Sourcespecs may be built from WML config objects directly (reader
  interface).
2008-11-02 19:57:29 +00:00
Ignacio R. Morelle
ebe1ae2f40 Reworked the interfaces for sound source,
...taking off some uncomfortable coding practices.

  This is my first step towards fixing a bug in which sound sources are
  discarded on game load (bug #11495). Functionality should not be
  affected by this commit. A experimental write() interface was added
  to class soundspec but it is still unused and untested.
2008-11-02 18:05:11 +00:00
Ignacio R. Morelle
caed2cf18f Changed the default fade-out and full-volume ranges of soundsources...
...by saner values (the former defaults are mostly useless).
2008-11-02 00:38:53 +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
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
739ec0bd38 Initialize all members. 2008-06-22 10:03:57 +00:00
Karol Nowak
f50f49af9d Stop sound when sound source is removed. 2008-03-16 15:02:39 +00:00
Karol Nowak
9f342c90e1 Made it possible to specify fading distance for a soundsource.
Removed specification of default value for full_range from game events code.
2008-03-16 13:56:13 +00:00
Karol Nowak
3b9705905b Changed logic responsible for determining volume of sound sources.
It's now based on hex distance.
2008-03-16 10:22:25 +00:00
Karol Nowak
3d33008605 How did this become an int..? 2008-03-15 21:20:55 +00:00