Daniel Evans
f59653eeea
Make DamageInfo construction more explicit
2019-01-06 02:54:03 +00:00
Daniel Evans
bdacc1137a
Modernize ScanType enum
2019-01-05 02:02:28 +00:00
Daniel Evans
62637ccc29
Move WeaponScan to Weapon.hpp, add scan source field
2019-01-04 01:11:17 +00:00
Daniel Evans
97609fcb5e
HitTest class for use in area scanning
2019-01-03 00:00:54 +00:00
Anonymous Maarten
b39d002522
tests: make tests use librwgame
2018-12-28 00:58:10 +01:00
Anonymous Maarten
8b38fda984
rwgame: merge argument + configuration file parsing + add tests
...
- definition of arguments an configuration parameters is centralized
in rwgame/RWConfig.inc
- argument parsing is tested
- the try/catch in main is less weird now (imho)
2018-12-28 00:58:10 +01:00
Filip Gawin
c49b4bbd50
Further refactor of menu managment
2018-12-27 22:50:05 +01:00
Filip Gawin
d5541ac91f
Convert Menu instances to std::optional
2018-12-21 22:58:51 +01:00
Filip Gawin
835c0147fe
Use static instance of AnimationBone
2018-12-09 14:32:11 +01:00
Daniel Evans
fe3d085de2
Merge pull request #666 from madebr/codecov
...
Add coverage reports
2018-12-02 11:41:37 +00:00
Filip Gawin
6cc8037ffb
Convert vehicleInfo to vector
2018-11-29 23:36:44 +01:00
Filip Gawin
3c98a7222d
Use only static memory allocations of DynamicObjectData
2018-11-29 23:36:44 +01:00
Filip Gawin
dce5257eb3
Avoid dynamic allocations of WeaponData
2018-11-29 23:36:44 +01:00
Anonymous Maarten
d43123ba50
ci: add ability to upload to codecov.io
2018-11-27 13:47:25 +01:00
Petar Kukolj
262523c211
Add HUDDrawer class and add a test
2018-10-30 15:08:25 +01:00
Filip Gawin
4940ae0d6b
Disable warnings caused by register in bullet
...
To revert when https://github.com/bulletphysics/bullet3/pull/1941
will be merged.
2018-10-29 16:35:32 +01:00
Filip Gawin
0ae2a836ca
Game objects as unique ptrs
2018-10-05 13:06:53 +01:00
Filip Gawin
a813837040
Convert AnimationBone and Animatior to unique ptr
2018-09-24 21:32:33 +01:00
Anonymous Maarten
c73e5d514d
cmake+ci: install pdb's + enable on ci
2018-09-16 00:53:18 +02:00
Anonymous Maarten
0b8bc41fa7
all: fix 'warning: missing braces around initializer'
2018-09-16 00:53:16 +02:00
Anonymous Maarten
32d3ab7508
rwengine+tests: disable C4305 warning for bullet3
...
warning C4305: 'argument': truncation from 'double' to 'const btScalar'
2018-09-16 00:52:41 +02:00
Anonymous Maarten
cce05da985
tests: fix for xcode
2018-09-16 00:52:41 +02:00
Daniel Evans
02b42a8fed
Merge pull request #616 from ShFil119/remove_raw_ptrs_from_objects
...
Remove raw ptrs from game objects
2018-09-01 23:37:42 +01:00
Filip Gawin
63ab663ea5
Remove raw ptrs from VehicleObject
2018-08-31 20:04:39 +02:00
Daniel Evans
26398ca636
Merge pull request #603 from ShFil119/sounds_tests
...
Prepare tests for Sound and SoundBuffer
2018-08-29 20:30:13 +01:00
Filip Gawin
77e0e3a3bc
Prepare tests for Sound and SoundBuffer
...
Also refactored SoundBuffer a bit.
2018-08-29 19:43:18 +02:00
Daniel Evans
2670de509f
Merge pull request #573 from ShFil119/raii_effects
...
Refactor VisualFX and fix memory leaks
2018-08-28 14:28:55 +01:00
Filip Gawin
e8fe8b614a
Refactor VisualFX and fix memory leaks
2018-08-21 21:51:28 +02:00
Anonymous Maarten
6aa9b3a1b7
tests: GameWorld needs a loaded GameData
...
dependency tree:
GameWorld -> SoundManager -> FileIndex
2018-08-21 19:59:53 +01:00
Anonymous Maarten
0f2cacd35a
rwtests: fix FileIndex test on Windows
2018-08-17 03:31:29 +02:00
Anonymous Maarten
7eab14bee0
conan: update + latest versions
2018-08-15 22:53:32 +02:00
Anonymous Maarten
b545b79a4b
cmake: do not use rwdep::xxx targets
2018-08-15 09:12:01 +02:00
Daniel Evans
be2816c398
Merge pull request #572 from danhedron/test_update/IPL
...
Remove data dependency from LoaderIPL tests
2018-08-08 00:34:27 +01:00
Daniel Evans
a0eb668f79
Simplify IPL tests by adding output and comparison operators
2018-08-07 23:15:20 +01:00
Daniel Evans
7938f8678f
Add LoaderIPL tests for inst section
2018-08-07 01:18:01 +01:00
Daniel Evans
f95427c136
Merge pull request #540 from ShFil119/remove_FileHandle
...
Remove unneeded FileHandle (aka shared_ptr)
2018-08-07 00:31:19 +01:00
Daniel Evans
2a50194f5b
Change LoaderIPL tests to use test-local data
2018-08-06 23:48:16 +01:00
Daniel Evans
0af9b23fe1
Add stream interface to LoaderIPL and use it in test
2018-08-06 23:37:37 +01:00
Daniel Evans
413df08ea9
Extract zone data tests to be more explicit
2018-08-06 23:25:03 +01:00
Daniel Evans
09a092475e
Test Fixture
2018-08-06 23:02:07 +01:00
Filip Gawin
f3a718611e
Convert data of FileContentsInfo to unique_ptr
...
I've removed copy ctor and copy assign operator.
We use here unique_ptr so copying should not happen.
2018-08-06 23:08:34 +02:00
Daniel Evans
634a3940ac
Merge pull request #570 from danhedron/test_up/IDE
...
Remove data dependency from LoaderIDE test suite
2018-08-06 21:43:46 +01:00
Filip Gawin
27333efd8c
Remove unneed FileHandle (aka shared_ptr)
2018-08-06 22:42:09 +02:00
Daniel Evans
b68af53c97
Use BOOST_TEST instead of BOOST_CHECK_*
2018-08-06 20:40:43 +01:00
Daniel Evans
b14bcc8a12
Rename ObjectDataTests suite to LoaderIDETests
2018-08-06 00:03:32 +01:00
Daniel Evans
fc64c5e87e
Add more object tests and fix a ped info bug
...
The car mask ped info member was being loaded as base 10 instead of base 16
2018-08-05 23:55:20 +01:00
Daniel Evans
a8b2b94b05
Extract stream construction into fixture
2018-08-05 22:29:01 +01:00
Daniel Evans
3b7bb14de6
Extract object data assertions to functions
2018-08-05 22:22:13 +01:00
Anonymous Maarten
37fcebee40
rwlib+rwengine: add string conversion independent of font
2018-08-05 23:20:58 +02:00
Daniel Evans
81b7e5226a
Use hard-coded test data in object data tests
...
This removes the dependency on the game data for these tests.
2018-08-05 21:39:43 +01:00