Commit graph

18 commits

Author SHA1 Message Date
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
553cacd88e Moved game version stuff from game_config.hpp to version.hpp
They're still in the game_config namespace but are now in a more logical header.

game_config::version has been replaced with wesnoth_version.str(), save for one case
where it was replaced with wesnoth_version directly (it was a comparison against another
version_info object; no need to compare against a string...).

Also cleaned up a bunch of game_config.hpp includes.

(cherry-picked from commit b8d051cb72)
2018-10-07 03:18:49 +00:00
Gregory A Lundberg
b5f76eff79
Bump copyright to 2018 2018-01-19 00:02:20 -06:00
Charles Dang
b7ac634e78 Removed trailing tabs and whitespaces from C++ source
[ci skip]

I ran the same command from 9b7b1751fd.

Excludes:
* lua/
* spirit_po/
2017-10-09 11:49:51 +11:00
David Mikos
ecb51029d7 Fix for jumpy movements in bug #1565
Add a new max_animation_time_ variable that checks whether the time
for the movement animation exceeds the potential time. This will
restrict the time interval to match the offset 0~1:200,0~1:200,etc.
as the unit is moving.
2017-07-19 20:06:33 +09:30
Celtic Minstrel
6846506860 Lua Units: Add animations key which returns a list of animations defined
Note: It returns only the flags (for use in [animate_unit], not the full animation.)
2017-05-10 17:40:19 -04: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
Celtic Minstrel
fcc0da5bd4 Some cleanup of attack_type usage for enable_shared_from_this safety
- Call shared_from_this() instead of taking the address
- Don't use raw pointers to attack_type
- Change some cases of attack_type objects that weren't owned by a shared_ptr
  (either owned by another object or allocated directly on the stack)

List of files that currently call attack_type constructors:
- game_events/conditional_wml.cpp
- gui/dialogs/unit_attack.cpp
- scripting/lua_unit_attacks.cpp
- units/types.cpp
- units/unit.cpp

Each of these has been individually considered and made safe for use with
enable_shared_from_this. (Most of them already were safe.)
2017-04-11 17:15:38 -04:00
Celtic Minstrel
b4dc11ce36 Belated 2017 copyright update 2017-03-19 10:05:38 -04:00
Charles Dang
f2d730bd86 Convert unit animation code to use color_t
boost::optional was used for certain colors in frame.*pp since there isn't a good way to convert
a color_t to an "is present" bool.
2016-12-07 11:10:30 +11:00
Charles Dang
05479c4379 Renamed class "particule" to "particle" 2016-12-03 21:57:04 +11:00
Charles Dang
82a879725c Cleaned up unit animation code 2016-12-03 17:48:53 +11:00
Gregory A Lundberg
b3019efd42 Fix warning: Extra semicolon 2016-11-11 10:57:37 -06:00
Celtic Minstrel
b74afeff73 Rename terrain classes to avoid t_ prefix 2016-11-09 01:13:17 -05:00
Celtic Minstrel
d58697e777 Eliminate C-style enum/struct declarations 2016-07-19 17:27:38 -04:00
Celtic Minstrel
63081cac46 Simplify enum output with std::transform 2016-07-19 17:20:21 -04:00
Celtic Minstrel
3ac7f8d970 NULL -> nullptr
A few cases of NULL were missed, since changing them led to errors
(Mainly instances where it was passed to a boost::function)
2016-03-31 00:42:38 -04:00
Celtic Minstrel
bc711f5f43 Consolidate related files into subdirectories 2016-03-20 16:20:09 -04:00
Renamed from src/unit_animation.hpp (Browse further)