Commit graph

44 commits

Author SHA1 Message Date
Enno Rehling
775e8edae1 as much as possible, replace the UFL_OWNER flag with checking the owner the canonical way. 2012-05-17 16:40:50 -07:00
Enno Rehling
ff33af3c65 ship and building owners encapsulated in accessors
tests added
2012-05-17 15:23:15 -07:00
Enno Rehling
d12fe2dbed begin making shipowner use ship->owner.
fix a broken test caused by locale_string returning null.
2012-05-17 00:13:30 -07:00
Enno Rehling
ecbe770fce rename _log_error to log_error and get rid of the cumbersome #define 2012-05-16 16:52:01 -07:00
Enno Rehling
14d62afb0d rename _log_warn to log_warning and get rid of the cumbersome #define 2012-05-16 15:52:37 -07:00
Enno Rehling
53b9de957c putting the crit-bit tree to use. finding special region resources is faster this way than doing individual strcmp calls. 2012-05-14 16:36:17 -07:00
Enno Rehling
67ef4c52a3 combat spell functions have the same interface as spells now. 2012-05-09 18:28:33 -07:00
Enno Rehling
06e0d2b3b6 cleaning up castorder, unifying access to target region and caster. 2012-05-09 14:16:41 -07:00
Enno Rehling
02559f6869 refactoring castorder, because it's a bit of a mess of units, fighters, familliars and casters. 2012-05-09 13:46:10 -07:00
Enno Rehling
c10e2552ad get_spellfromtoken needs a mage, not any unit. 2012-05-09 13:06:16 -07:00
Enno Rehling
c22f49ec36 replace spellid_t with unsigned int
fix finding spells by token
make magic_t an enum
2012-05-09 03:14:54 -07:00
Enno Rehling
e01c6bb8b1 make merge request sing with Eressea
added a missing file (move_test.c)
changing the way tests are included
making some lua code prettier (too many parens)
2011-03-08 21:06:38 -08:00
Enno Rehling
8714957a61 fixed two bugs: harbours were not unique and multiple instances of unique buildings could still be built 2011-03-09 00:28:37 +01:00
Enno Rehling
b4c5607747 compiling with -pedantic on linux 2011-03-08 08:44:20 +01:00
Enno Rehling
496aa22e65 fixes for -ansi -pedantic 2011-03-07 17:29:19 +01:00
Enno Rehling
78b7dcd727 more indentation cleanup 2011-03-06 23:40:55 -08:00
Enno Rehling
791e4cd673 fix CRLF massacre 2011-03-07 08:35:23 +01:00
Enno Rehling
610c6799ea fix CRLF massacre 2011-03-07 08:31:59 +01:00
Enno Rehling
9c8779b303 indentation rules, slightly updated 2011-03-07 08:24:52 +01:00
Enno Rehling
9f539b8c12 CRLF confusion? 2011-03-06 23:07:04 -08:00
Enno Rehling
fb7a642d47 indentation rules, strictly applied 2011-03-07 08:02:35 +01:00
Enno Rehling
1be42e9d50 Make all tests for Eressea pass again, using the config module. 2011-03-06 21:49:01 -08:00
Enno Rehling
fb94908014 export resources and shiptypes as part of configuration. 2011-03-06 21:12:55 -08:00
Enno Rehling
b0f1445d68 removed all unused items 2011-03-04 20:44:30 +01:00
Enno Rehling
ca2556c618 fix a segmentation fault when file cannot be opened 2011-02-26 23:52:28 -08:00
Enno Rehling
cc9e95a2ab spells.lua is a bad file for example and meropis, it tests things that not every game has.
lua_pushinteger() must be new, I've never used it before.
all tests in meropis and example pass.
2011-02-26 23:21:12 -08:00
Enno Rehling
665d4aec4d Test framework broken, we were adding the wrong spell with the right name. 2011-02-26 10:07:49 -08:00
Enno Rehling
2e67e9c290 gcc wants us to define this struct, and that's correct 2011-02-26 09:33:20 +01:00
Enno Rehling
b2d6203cec 1. spell_list was pretty much used everywhere in the code, and is now also a quicklist.
2. Cleaned up the bindings for quicklist to Lua.
2011-02-26 00:26:14 -08:00
Enno Rehling
5497875c93 Funny. It turns out that building_list is totally not a thing and never was. 2011-02-25 07:41:51 -08:00
Enno Rehling
efca8cee43 The list of alliance members is now also a quicklist, and the lua binding for faction_list iteration can disappear. 2011-02-25 07:23:02 -08:00
Enno Rehling
0c2ccf2d20 We do not require unit_list, quicklists are the future. 2011-02-23 23:26:15 -08:00
Enno Rehling
d033e7156c Simple tests for persistent attributes and a fix. 2011-02-19 06:13:24 -08:00
Enno Rehling
8f327f7165 array-indexing error in error message discovered by stm. 2011-02-15 23:31:22 -08:00
Enno Rehling
ad4f4f59f0 bson attributes can be on anything now 2011-02-06 08:11:40 +01:00
Enno Rehling
dec5bb8834 code cleanup 2011-02-05 23:01:51 -08:00
Enno Rehling
321c0816f6 harmless code beautification 2010-10-31 19:33:18 -07:00
Enno Rehling
49a9992896 bindings for ship.coast 2010-10-16 21:10:46 -07:00
Enno Rehling
e53c1dc07b bind settings and unit-reporting 2010-08-28 17:52:33 -07:00
Enno Rehling
68f04e66d1 VS 2008 fixes fixed to build Release 2010-08-14 19:41:18 -07:00
Enno Rehling
beec74e0c6 Clearing every mage's spell-list before each turn is counter-productive. It destroys tests, and it doesn't let us have special spells added per-unit. 2010-08-08 23:39:21 -07:00
Enno Rehling
a5e712580f undo more CRLF screwups. 2010-08-08 01:14:01 -07:00
Enno Rehling
14b3ed309f use external folder for all libraries (VS2010)
new repository structure
2010-08-07 23:05:54 -07:00
Enno Rehling
72505ab8f3 moving to a new repository layout.
step 1: shared folder.
2010-08-07 22:07:17 -07:00