Commit Graph

35 Commits (39040429f5c506f0e7c596f305203bd84239e09f)

Author SHA1 Message Date
Per Inge Mathisen 3adfc0c702 Javascript code now uses tile coordinates. Also, queue() now takes two optional parameters,
one for mandatory delay, then one for target object.
2011-10-24 19:12:23 -04:00
Per Inge Mathisen a9c360d852 Javascripts can now replace wzscript for running AIs. 2011-10-23 17:15:29 -04:00
Per Inge Mathisen f88f363ad6 Javascript improvements to prepare for AI porting. The two types of repeating timers now unified
and functionality of setObjectTimer() implemented as an extra parameter to setGlobalTimer(). Also
added a new one-shot timer called queue().
2011-10-23 16:41:08 -04:00
cybersphinx fdab0303b1 Fix make check. 2011-08-24 17:02:54 +02:00
Rene Jochum 871f79fd10 Fix make dist (again). 2011-08-01 01:15:08 +02:00
Rene Jochum c74a8df0c5 Fix make dist. 2011-08-01 01:07:13 +02:00
Per Inge Mathisen 7842a7d981 Fix ticket:2766 - failure to end game when victorious in teams. Also fix failure to end in loss. 2011-06-05 12:26:14 +02:00
Per Inge Mathisen b805ec89ae Remove dead code from fastplay script 2011-05-17 12:02:53 +02:00
Per Inge Mathisen d6d5312d1d Add support for translations to qtscript system. 2011-05-16 23:40:42 +02:00
Per Inge Mathisen efd9213fde Convert skirmish rules script to qtscript. Fix play sound function. 2011-05-15 14:40:48 +02:00
Per Inge Mathisen 9d0b310296 Add unit tests for scripts. Add lint program for qtscript files for easier validation testing while writing scripts. 2011-05-15 11:33:41 +02:00
Per Inge Mathisen c57bd507ed Add new unit test for model files, to check that they are in a valid PIE format. Remove unused and broken A* test. 2011-01-24 20:49:05 +01:00
Per Inge Mathisen 35c00b924d Make 'make check' work again. 2011-01-24 20:14:25 +01:00
Christian Ohm e503f52a32 Fix "make distcheck".
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11371 4a71c877-e1ca-e34f-864e-861f7616d084
2010-08-04 16:43:19 +02:00
Christian Ohm d1343e4a7d Prevent automake.sh from complaining about astartest.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11296 4a71c877-e1ca-e34f-864e-861f7616d084
2010-07-28 18:58:31 +02:00
Christian Ohm a31beaec05 Fix "make check".
Disable astartest, since it's broken after the rename of astar.c to astar.cpp.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11258 4a71c877-e1ca-e34f-864e-861f7616d084
2010-07-22 19:17:54 +02:00
Per Inge Mathisen e17c33635c Fix unit tests
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10641 4a71c877-e1ca-e34f-864e-861f7616d084
2010-04-19 12:52:42 +02:00
Cyp 5c9585e8cb pointtree: Find points quickly.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9260 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:09 +01:00
Christian Ohm d8295761fc Add missing include to astartest.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9150 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:34 +01:00
Christian Ohm 0949e9ed28 Fix tests/Makefile.am for out-of-tree builds.
This makes "make distcheck" run the tests (but maptest has its paths hardcoded
and thus fails).

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8362 4a71c877-e1ca-e34f-864e-861f7616d084
2009-11-22 16:19:56 +01:00
Per Inge Mathisen a33e89200b Remove useless, old astar measurement code. Some code cleanup.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7919 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:56 +02:00
Per Inge Mathisen f0f13e295c Do some micro-optimizations on inner loop of path-finding code. Boosts performance by a measured 20%.
Also add a unit test for further testing, optimization and measurement work on this code.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7918 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:55 +02:00
Giel van Schijndel 52c8ba24e4 Revert accidentilly committed revisions r7394, r7395 and r7396 (part of a private branch)
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7398 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-15 22:29:31 +02:00
Giel van Schijndel ef5a01eeb9 Add a JSON tokenizer (lexer), parser and serializer
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7395 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-15 22:29:30 +02:00
Giel van Schijndel 12436947e8 Make tests/Makefile.am more suitable for line-based diffs
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7053 4a71c877-e1ca-e34f-864e-861f7616d084
2009-04-18 15:37:53 +02:00
Giel van Schijndel 0698f8424d Slightly better documenting of code and error messages
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6909 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:57 +02:00
Per Inge Mathisen 571d7e0329 make check: Also test included mod maps.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6821 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-08 18:02:39 +00:00
Per Inge Mathisen ecdb16baea Fix "make check" compilation
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6782 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-07 14:18:52 +00:00
Per Inge Mathisen 09ddf35b87 mapinfo: Parse .gam file and show scroll limits.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6730 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-26 23:17:05 +00:00
Per Inge Mathisen 58546965b7 Delete commented out references to non-existent files from gamedesc.lev
Delete two unused and broken map files that either belongs to an expand mission or is unreferenced.
Add basic unit testing framework for testing all map files in data/base.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6728 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-26 19:41:25 +00:00
Giel van Schijndel 6254f73329 Remove now useless testcase directory "tests" as its only testcase (t1000: tested level_parser.y) has no code left to test (due to r5163)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5165 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-24 12:48:26 +00:00
Giel van Schijndel 72075d2621 Fix LDADD in tests/Makefile.am so that crosscompiling (or rather crosslinking) with mingw32 is possible
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5090 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-12 19:52:35 +00:00
Giel van Schijndel 8997223371 Perform the actual function call of the parsing function (levParse) in doParseTest() in t1000.c rather than parse_test.c
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4894 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-02 21:55:24 +00:00
Giel van Schijndel efd188a632 Call debug_exit() on exit from the parser unit test so that valgrind testing becomes easier
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4887 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-02 20:30:45 +00:00
Giel van Schijndel 35d84d2fbf Add the beginnings of an external unit test framework (i.e. it doesn't run in Warzone itself, it just links to pieces of Warzone's code to test it):
* Add a new directory with unit tests (/tests/)
  * Run `make test` in this directory to execute all these unit tests and get reports from them if they fail
 * Add a single unit test to the directory which tests level_parser.y and the input it should & shouldn't accept


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4883 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-02 18:44:01 +00:00