104 Commits

Author SHA1 Message Date
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
Anonymissimus
6e973a94bb Change side_filter::get_teams() to return a std::vector
to make sure the order of iteration is retained. For changing some tags
without deprecation, it is neccessary that the first side matching an
empty filter (side 1) is always first in the loops.
side_filter::get_teams() should be replaced by an interator.
2011-10-04 12:54:37 +00:00
Thonsew
9ce82aec1a Upgraded game_events.cpp...
...and files that interacted with game_events to use t_token in place
of std::string for config objects
2011-09-08 19:16:49 +00:00
Anonymissimus
703ec0ff99 introduced parameter in get_sides_set...
...to deprecate side-taking wml action tags with message "empty side=
is deprecated" with the goal of an inline ssf, which can only be added
support for once the deprecation period is over
2011-05-11 20:45:08 +00:00
Anonymissimus
2c496c1658 Made it so that if the affected WML action tags...
...are passed an inline side= attribute and a [filter_side] tag, a
warning is emitted and the inline side= information is ignored.
2011-05-08 21:45:26 +00:00
Iurii Chernyi
aa85637df5 commit second part of patch #2637 by anonymissimus
unified style of side= and [filter_side] for lua wml tags]
2011-05-08 11:44:30 +00:00
Mark de Wever
ecbabea838 New year copyright update. 2011-01-01 15:57:50 +00:00
Mark de Wever
8ba45442ee Remove unneeded includes. 2010-11-21 13:59:02 +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
Guillaume Melquiond
3ef35edebe Removed wesnoth.fire and register_wml_action functions from the engine.
Delegated handling of WML actions to Lua.

Made WML action handler proxies into an associative table.

Added backward-compatible functions for accessing them.
2010-07-18 21:38:57 +00:00
Jérémy Rosen
a2382d7e36 allow search_recall_list in have_unit, patch #1672 by kegv 2010-05-30 12:15:20 +00:00
Ali El Gariani
694617b322 clean some include 2010-05-09 14:51:09 +00:00
Guillaume Melquiond
ad3ebbba05 Removed locations from unit maps so that they are not duplicated.
As a side effect, iterators became much nicer, e.g. usable in foreach.
2010-03-28 10:42:41 +00:00
Guillaume Melquiond
8a5bbaf90b Simplified code since event handlers are no longer nonvolatile. 2010-01-31 11:34:14 +00:00
Mark de Wever
8ac443866e Make a member function a const member function.
Issue found by cppcheck.
2010-01-26 21:56:00 +00:00
Mark de Wever
92f5f92ce5 New year copyright update. 2010-01-01 13:16:49 +00:00
Mark de Wever
66bee832b5 Remove an unneeded include. 2009-12-05 21:25:30 +00:00
Mark de Wever
29ae8bf5de Remove an unneeded include. 2009-11-27 23:00:41 +00:00
Mark de Wever
d94b28e4f2 Pass parameter by const ref instead of const value.
Issue found by cppcheck.
2009-10-02 19:25:28 +00:00
Mark de Wever
e16466de28 Pass parameter by const ref instead of const value.
Issue found by cppcheck.
2009-10-02 19:25:25 +00:00
Guillaume Melquiond
cdd62988d9 Modified registration of action handler,
...so that the previous one can be recovered, if needed.
2009-08-16 21:19:49 +00:00
Guillaume Melquiond
08caebe6de Exported event finalization. 2009-08-15 07:59:59 +00:00
Guillaume Melquiond
bef5b93e84 Removed unneeded forward declarations. 2009-07-19 09:50:08 +00:00
Guillaume Melquiond
176bb4c3ce Removed get_state_of_game. 2009-07-18 14:17:50 +00:00
Guillaume Melquiond
c7fbcd2ce1 Moved resources to their own header. 2009-07-18 12:05:33 +00:00
Guillaume Melquiond
645659d450 Cleaned code for setting terrain and exported it. 2009-07-14 14:03:47 +00:00
Eugen Jiresch
931529ffa7 removed gamestatus member from play_controller and game_events::resources_t 2009-06-24 09:25:04 +00:00
Eugen Jiresch
5ea9a1120a removed further references to gamestatus methods...
...by their tod_manager equivalents
2009-06-17 14:52:04 +00:00
Pauli Nieminen
e18bba4b73 Make new turn, turn X, side turn and turn refresh synchronous (bug #10603) 2009-05-25 10:44:00 +00:00
Guillaume Melquiond
7f4ee9214f Aggregated game_events resources so that other files...
...dealing with events can access them too.
2009-04-18 14:39:59 +00:00
Guillaume Melquiond
f4bee1bbab Removed the need for an event_handler when firing event actions. 2009-04-18 10:51:25 +00:00
Guillaume Melquiond
5bd20c0373 Removed the mutated_, skip_messages_,
...and rebuild_screen_ fields from class game_events::event_handler,
as they do not have the same lifetime.
2009-04-18 10:51:15 +00:00
Guillaume Melquiond
b741f305fe Removed unused code. 2009-04-18 08:36:02 +00:00
Guillaume Melquiond
068fa79bc8 Added support for dynamically added action handlers. 2009-04-13 11:49:07 +00:00
Guillaume Melquiond
bebe4a0f9c Removed the command_handlers class. It was left unimplemented. 2009-04-13 11:49:03 +00:00
Ignacio R. Morelle
e21df85337 Expose the [deprecated_message] code for use elsewhere than EventWML. 2009-04-04 23:47:10 +00:00
Ignacio R. Morelle
09f518e465 Expose the [wml_message] code for usage elsewhere than EventWML. 2009-04-04 23:46:48 +00:00
Guillaume Melquiond
70a445416d Removed config::child_list from game_events.hpp. 2009-03-20 07:08:18 +00:00
Patrick Parker
29161a19b7 minor simplification of game_events:
- eliminate the return value of handle_event()

- remove data encapsulation violation(s) of the team class
2009-02-23 03:38:54 +00:00
Patrick Parker
5ae5933c0a remove the needless encapsulation violations of class event_handler 2009-02-22 05:20:51 +00:00
Patrick Parker
0ecc9308df real fix for bug #12803 (revert workaround)
* make sure all event handlers created from WML menu item commands use
  memory managed vconfigs

* a flaw with vconfig::all_children_iterator losing track of the
  volatility flag
2009-01-02 04:09:46 +00:00
Mark de Wever
a5d1d2e969 New year copyright update. 2009-01-01 10:27:41 +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
Alexander van Gessel
bab6becec4 Removed obsolete compatibility code. 2008-09-16 19:41:55 +01:00
Pauli Nieminen
e8444eee2f Changed unit::underlying_id_ to integer that is incremented...
...everytime new unit is created

- Fixes problems with duplicated unit_map ids
2008-09-13 21:59:45 +00:00
Mark de Wever
0b684377f4 Update doxygen comment style. 2008-09-13 17:12:30 +00:00
Patrick Parker
b087db7aa3 fix bug #11988: Events with multiple types are multiplied
allow variable substitution in event names

allow spaces or underscores to be used interchangeably in event names
2008-08-25 06:21:44 +00:00
Pauli Nieminen
efab5f8300 [[big heap of miscellaneous fixes]]
* Made map labels not to register if having empty text. (labels are
  still needing rewrite)

* Fixed filter check for missing tags report

* Made SDL_Init(TIMER) called in all platforms (This initializes
  variables in sdl; eg SDL_GetTicks counter)

* Added campaignd server cr encoding conbersion so old data is
  converted to new format

* Made Unit test website find old error with less strict parameters
2008-08-11 01:16:11 +00:00