351 Commits

Author SHA1 Message Date
aquileia
5cf8cf2b32 vcproj: Fix File node from PR #447 2015-08-12 00:29:13 +02:00
Celtic Minstrel
f619b4cc63 Update build stuff
(Sconscript, CMakeLists, tests, project files)
2015-08-07 22:50:34 -04:00
aquileia
db5bae762d vcproj: Add debug settings via .vcxproj.user
As user options aren't upgraded with the solution, we provide them in both
formats.
2015-07-28 16:04:29 +02:00
aquileia
d279aa4afe vcproj: Fixes and cleanup
Fixed an issue caused by 659b9a4 - the 'Start Debugging' option was
basically useless as the process terminates itself if OMP_WAIT_POLICY
isn't defined.

Cleaned up unnecessary configurations for WindowsTimeout.

Fixed duplicate manifest.

Disabled WML unit tests on MSVC Debug builds as they would quintuple build
duration (over 60s per test).

Re-enabled stdout redirection in WML_tests.cmd to avoid spamming the
command line.

Updated vcproj for daa2140 (added multimenu widget).
2015-07-26 15:05:38 +02:00
aquileia
cbd024fea9 vcproj: Add png screenshot support 2015-07-26 15:05:36 +02:00
aquileia
00259251fa vcproj: Merge manifest information 2015-07-24 02:42:01 +02:00
aquileia
ca8ea2158f vcproj: Add build_info, desktop/version, dialogs/game_version 2015-07-15 15:17:53 +02:00
aquileia
b1dac5dfce vcproj: Add external/include and external/lib
As the vcproj format is poorly documented, we previously couldn't find an option to pass compiler/librarian/linker dependencies without manually adding them in the menu. After installing VC9, I found an option that is correctly ported to vcxproj (the new format since VC10) and allows to specify these additional dependencies.
2015-07-06 00:19:05 +02:00
aquileia
ccac655da4 vcproj: Update for da1c8bf & 138f7c9 2015-06-24 15:26:03 +02:00
aquileia
2f7af4c477 Update VC project (YAMG removal, wconsole addition)
[skip ci]
2015-04-25 18:36:01 +02:00
aquileia
2a8bc5b339 Update vcproj for 0fcf4e3cb (& 7f5152d0)
[skip ci]
2015-04-15 08:43:56 +02:00
aquileia
03e2f3fff8 VC project: Remove libintl include 2015-04-08 22:57:21 +02:00
aquileia
27b5f955eb VC dependencies: Remove superfluous libraries
libintl was superseded by Boost locale, lua was merged into our source
2015-04-08 22:57:18 +02:00
aquileia
aad3e0d1f0 Convert /projectfles readme's to markdown
[skip ci]
2015-04-08 22:57:15 +02:00
aquileia
659b9a4141 Fix performance of MSVC OpenMP builds
Instead of idling at 100% CPU usage, we're back at 4-5%.

For VC2010, an additional hotfix has to be applied to the dll files: http://support.microsoft.com/en-us/kb/2689322
2015-03-14 06:43:17 +01:00
aquileia
4da8eecc64 vcproj: Fix WML_test execution on debug builds
[skip ci]
2015-03-08 19:42:28 +01:00
aquileia
44ec27daf2 vcproj: Update for ea212b5
[skip ci]
2015-03-08 19:42:25 +01:00
aquileia
86d8b7faef vcproj: Fix liblua Release rebuild
If several projects share the same IntDir, they write to the same .pdb
which causes issues with multithread compilation (as well as warnings).

[skip ci]
2015-03-08 19:35:16 +01:00
aquileia
84f61dc51d vcproj: Update for bb0ecd14c
[skip ci]
2015-03-06 13:20:51 +01:00
aquileia
6473c4fc3a Update vcproj for 781df37ca
[skip ci]
2015-02-27 13:48:24 +01:00
aquileia
a59440fe9e Update wesnoth.vcproj 2015-01-05 07:01:40 +01:00
anonymissimus
23ca125d4e disable several 1000 boost header level 4 MSVC warnings project-wide 2014-12-03 14:35:31 +01:00
anonymissimus
bc314751d5 vc build update 2014-11-30 18:32:36 +01:00
Nathan Walker
2e362fb75e update project files for campaign_settings 2014-08-09 19:38:28 -05:00
aquileia
7cb704d8cd VC project: Remove superfluous build tool 2014-07-18 15:50:05 +02:00
aquileia
8f2010ebf5 Remove config_assign.cpp 2014-07-18 15:48:42 +02:00
aquileia
add4f9a558 Fix projectfiles for #242 2014-07-18 15:44:56 +02:00
Chris Beck
31487bec26 move notifications into desktop namespace, rename folder also
We also move the desktop_utils files to desktop/open.?pp, and
update the project files appropriately.
2014-07-14 00:48:02 -04:00
aquileia
ece615363c Fix VC build for 5d3040c0b 2014-07-05 22:40:09 +02:00
Chris Beck
d803cde06a move unit_filter implementation out of unit
The purpose is to simplify the unit class, and perhaps allow for
some optimizations regarding how unit filters are impemented.
2014-07-03 03:47:24 -04:00
Chris Beck
32dc07478f revert and fixup boost/function.hpp external include guards 2014-06-29 11:40:53 -04:00
Chris Beck
b4d6a254bf rename ambiguous "game_controller" to "game_launcher"
Minor change but helps to reduce the overuse / misuse of the term
"controller" in key class names in the project.
2014-06-29 09:52:46 -04:00
Chris Beck
da41bf9968 rename "main" compilation unit "wesnoth.cpp" to match executable 2014-06-29 09:39:40 -04:00
Chris Beck
f24f6adee1 add wmi pager class, to allow unlimited wml menu items
The pager is held by the play_controller and wraps around the
wmi_container, if there are too many items it adds "More Items"
or "Earlier Items" entries. These entries have special reserved
ids, if they are selected the pager traps them.

Future work might be to allow the page_size_ to be selected in
the preferences, that is currently left as a variable to make
it easy to support this.
2014-06-28 20:47:12 -04:00
Chris Beck
ed3453f742 move some utility files to utils folder 2014-06-27 19:06:18 -04:00
Chris Beck
d2edec5921 move notifications files to their own folder 2014-06-27 18:14:45 -04:00
Chris Beck
cb5a9a0d28 add display chat manager, notifications support outside game_display
The functionality of tracking observers and displaying chat messages
is moved to a manager class, which the gui owns.

The functionality of displaying notifications is similarly moved out
of the game_display and to a private namespace. (Static singleton
pattern seems okay here since there really won't need to be more
than one of these for a single application, it seems.)
2014-06-27 15:57:57 -04:00
Chris Beck
30a443d12f move game_state to its own file 2014-06-24 15:36:58 -04:00
Chris Beck
b51d6a15d1 rename gamestatus.?pp -> game_data.?pp, b/c of content changes 2014-06-24 13:44:25 -04:00
Chris Beck
cf2651b5a7 rename drawable_unit.?pp -> unit_drawer.?pp, b/c of new contents 2014-06-24 13:22:13 -04:00
Chris Beck
663494f661 move teambuilder to its own file 2014-06-24 13:12:29 -04:00
Chris Beck
0f5876fe38 change fake_unit class to fake_unit_ptr
This is consistent with the introduction of the UnitPtr class.
fake_units really aren't different from units, the only difference
is their life time / allocation and ownership. Since we are trying
to use reference counting for all units (to make them safe to use
with animations), the fake units need to be managed by a reference
counted pointer also. This is the easiest way to achieve that.

I also remove some odd code the [move_units_fake] handler --
there was explicit code to remove the fake units from the fake
unit manager, but this is redundant as it is the responsibility
of the destructor.

Code Blocks and VC project files are updated, but
Code::Blocks Scons and Xcode are not.
2014-06-23 11:17:55 -04:00
aquileia
28e12a73aa Update VC project 2014-06-21 03:39:41 +02:00
aquileia
9f92dacabb Fix VC project files 2014-06-20 01:51:21 +02:00
Chris Beck
a4b194c079 add recall list manager
This commit adds a dedicated recall list manager class.

The purpose of this is to

- Simplify the code that interacts with the recall list. Prior to
the commit most such code was based on iteration with explicit
iterators, and called global helper functions implemented in
unit.cpp to wrap the code that finds a unit in a vector. It turns
out that interacting with the recall list was the *only* use of
that code, so we make it a member function of the recall list
manager and take it out of unit.cpp.

Most of the code that touches the recall list was previously
7 or 8 lines with a for loop, now it tends to be 1 or 2 lines,
although further refactor may be possible.

- Improve encapsulation. This makes it possible to track how
other classes are interacting with the recall list, and may
make it easier to debug recall list problems by adding debugging
output to the class.
2014-06-18 12:54:32 -04:00
Chris Beck
504e4932b5 split off animation fcs from unit to unit_animation_component
This is a strict refactor, all we do is move the functions and
variables used just for animations to "unit_animation_component",
and include the necessary headers appropriate.

With a bit more work we can probably remove the graphics related
headers from unit.hpp
2014-06-17 02:18:46 -04:00
Chris Beck
0be1d731d5 add drawable unit class
drawable unit inherits from unit, and implements the draw function,
used only by the display. when the display wants to use the function,
it casts a unit pointer to a drawable_unit, and draws it. this
improves encapsulation.
2014-06-16 22:10:31 -04:00
Chris Beck
c8ada18ff4 update project files 2014-06-16 17:37:53 -04:00
Chris Beck
2510b779f6 rename animated.i to animated.tpp 2014-06-15 09:54:55 -04:00
Chris Beck
a60d5b0018 move formula ai features of unit to a unit formula manager
This use of handle-body idiom saves *alot* of includes, since a
huge number of objects include unit indirectly, and make no use
of the ai formula features.
2014-06-14 18:39:57 -04:00