Commit graph

127 commits

Author SHA1 Message Date
Iris Morelle
48e6b821b0 i18n: Convert POSIX/Win32 locale table file into a map
This removes the need for the separate file and the giant if chain by
using a std::map instead.
2020-01-19 12:40:03 -03:00
newfrenchy83
207954ac09
Update wesnoth.cbp 2019-12-10 11:44:20 +01:00
newfrenchy83
ee98253671 Update wesnoth.cbp 2019-11-06 07:49:33 +11:00
newfrenchy83
0c04d26543 Update wesnoth.cbp 2019-10-19 04:02:48 -05:00
Celtic Minstrel
7c07cc71c0 Remove support for legacy menu markup 2019-09-18 22:48:53 -04:00
newfrenchy83
62a005f4cf fix for sample_user_handler removal. (#4273) 2019-08-24 14:26:32 +02:00
newfrenchy83
148ea6fbe7 update CB scons project 2019-01-04 19:06:28 +02:00
newfrenchy83
6d06cee014 Update Code::Blocks SCons project (#3762) 2018-12-06 09:29:00 +02:00
Martin Hrubý
96bbebb514 Fix building with Xcode 10 (#3460)
Resolves #3458.

(cherry-picked from commit 50301f84e3)
2018-10-07 03:24:17 +00:00
Celtic Minstrel
c2ed9c5c19 MSVC project file cleanup
- Add a few missing headers
- Remove redundant headers
- Remove duplicate include of filesystem sources
- Remove an empty source file

[ci skip]
2016-12-01 16:18:03 -05:00
Celtic Minstrel
1816e1147f Remove asserts.hpp
This file seemed to be some sort of reimplementation of <cassert> except
with some "feature" of trying to force the debugger to hit a breakpoint.
However, any decent debugger already hits a breakpoint with a standard
assert(), and this file really only served to make it harder to see the
actual error when using a Windows console.

Some instances of these macros were replaced with assert(), others with
VALIDATE() which instead throws an exception (and possibly puts up a
dialog, if the exception is caught before main()).

A few other related changes that got mixed in:
- Several error conditions now have a better error message (or indeed
  any error message at all)
- Removed an unnecessary use of std::distance on a Boost iterator range.
- Removed a large chunk of code which did nothing but construct a widget
  builder and then crash; the code was unreachable since an earlier loop
  did the same thing (without crashing), and the comment seems to suggest
  that it was a (seemingly no longer necessary) workaround for some buggy
  compilers / linkers.
- noreturn added to the list of compatibilty C++11 features in global.hpp
  (Of supported compilers, only VC12 lacks the new [[attribute]] syntax.)
- Fix detection of GCC in global.hpp

# Conflicts:
#	src/gui/widgets/settings.cpp
2016-09-18 15:57:47 -04:00
JaMiT
d46a327029 Missing file, moved files, and alphabetical order 2016-09-05 00:42:03 -05:00
Kevin_Xi
cb482a38fc Register the new stage and update build files 2014-08-23 01:12:51 +08:00
Nathan Walker
2e362fb75e update project files for campaign_settings 2014-08-09 19:38:28 -05: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
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
Alexander van Gessel
07a6ba695e Merge pull request #199 from aquileia/ignore
Restructure and merge .gitignore files
2014-06-13 16:27:01 +02:00
Chris Beck
da552fc10e fixup segfaulting editor, favoring display_context over game_board
Currently, the editor does not generate game_board objects, and
leaves the pointer resources::gameboard null. This commit makes
map_location, reports, and tod_manager, three things used in
editor mode, use the display_context pointer instead of the
game_board pointer. We also move a function to display_context,
which finds a const unit * to a visible unit at a hex.
2014-06-11 01:28:15 -04:00
Chris Beck
522988c689 update projectfiles to include display_context.hpp 2014-06-10 18:45:44 -04:00
aquileia
1e9a508795 gitignore: Merge rules from projectfiles/ 2014-06-09 01:00:41 +02:00
Chris Beck
2afe4f4f5a move game_board to its own file, update project files 2014-06-01 08:13:34 -04:00
Chris Beck
215de94390 Add make_enum macros and a unit test, also add to project files 2014-05-24 14:59:20 -04:00
Chris Beck
a3377d6113 fixup project files after rename builder.?pp -> terrain_builder.?pp
This fixes up earlier commit 8fafdbecd4
2014-05-18 01:07:49 -04:00
aquileia
a92e374907 Fix CB-Scons target names 2014-04-18 20:53:22 +02:00
aquileia
963690884d Fix CodeBlocks project files 2014-04-17 16:57:08 +02:00
aquileia
5a21d5d8c8 CodeBlocks: Don't compile tools & wesmage 2014-04-16 21:56:47 +02:00
aquileia
093c49662f Align CB and CB-scons project files 2014-04-16 21:02:11 +02:00
Kevin_Xi
09b0aad1f8 Add missed files to and remove obsolete file from CodeBlocks-SCons and CodeBlocks project file 2014-04-17 01:43:28 +08:00
JaMiT
1f77cb1fc3 Split wml_menu_item and wmi_container into their own source files.
They are now under the game_events subdirectory.
2013-10-27 12:13:45 -05:00
Ignacio R. Morelle
ede9848bd8 Remove stub.hpp and the orphaned function using it
All this was used only by the no-op the_end() implementation.
2013-09-16 04:31:09 -03:00
JaMiT
a213190130 Remove some functions that have been unused for a year (r54990). 2013-08-25 22:32:27 -05:00
JaMiT
c0435769bd Split game_events.cpp.
VC and XCode projects still need to be updated.
2013-08-11 19:31:20 -05:00
J. Tyne
bb70a29017 Overhaul of unit_movement_type
This is a general overhaul of the class embodying movement types,
featuring:

* Better data encapsulation

* Less duplication of code between unit.cpp and unit_type.cpp

* Easier to use

* New files for the class (VC and XCode projects still need updating)

* New (shorter) name for the class

Some additional revisions will be coming.

The primary motivation for this was to get a class that embodies
movement costs (part of the data encapsulation).
2013-02-20 02:25:14 +00:00
J. Tyne
724618c287 Split actions.cpp into six pieces (into a new "actions" subdirectory).
Most of the project files have also been updated, but I ran into some
difficulties trying to update VC9 and Xcode.
2012-08-25 14:06:46 +00:00
Ignacio R. Morelle
20bcf49f3e Remove custom pool memory allocator per wesnoth-dev mailing list discussion
This affects the cmake and scons scripts, and various project files in
projectfiles/. I have only tested my changes to scons (and loonycyborg
might still want to review the diff regarding a line in src/SConscript
involving game.cpp).
2012-02-19 18:43:20 +00:00
Alexander van Gessel
509655682e Merge and update 2011-05-02T18:52:36Z!terraninfo@terraninfo.net from 1.8 branch
rework MP chat log as a GUI2 dialog with colored display of messages
2011-12-12 02:26:27 +01:00
Dmitry Kovalenko
b2ce483b71 Lua aspect foundation 2011-06-01 13:47:33 +00:00
Anonymissimus
72a618189d removed some files deleted a while ago from the projectfile 2011-05-25 22:55:13 +00:00
Sergey Popov
ec557cdb39 Updated build commands in codeblocks-scons projectfiles...
...to work with codeblocks 10.05
2011-03-21 18:48:34 +00:00
Iurii Chernyi
6df240e341 stub code for new candidate action for gnew ai lobal_fallback stage, 2011-01-03 03:45:52 +00:00
Iurii Chernyi
c7f8b17c88 expiremental recruitment by Grimling, work-in-progress code 2010-11-25 15:08:46 +00:00
Alexander van Gessel
5f91c3bd4a Get rid of binary WML 2010-11-18 22:21:00 +01:00
Iurii Chernyi
c30997182e standard side filter 2010-11-06 23:43:53 +00:00
Timotei Dolean
27c645e252 Convert CRLF to LF 2010-08-06 21:44:10 +00:00