Tomasz Kapuściński
5a52c66b1f
Renamed target colobot_ut to Colobot-UnitTests
2023-08-22 21:39:55 +02:00
Tomasz Kapuściński
434bd0bd3a
Renamed src to colobot-base and colobotbase target to Colobot-Base
2023-08-22 21:19:03 +02:00
Tomasz Kapuściński
1034c2e45c
Rewritten config to use JSON instead of INI
2023-08-15 12:02:51 +02:00
Tomasz Kapuściński
b296ee4d47
Added StrUtils::Split() and replaced boost::split()
2023-08-15 02:41:40 +02:00
Tomasz Kapuściński
b3c6e667f5
Rewritten UTF-8 implementation using standard library
2023-08-14 21:46:05 +02:00
Tomasz Kapuściński
a48f13fb35
Fix for missing setlocale()
2023-08-14 00:11:15 +02:00
Tomasz Kapuściński
b5b3f81840
Added ToLower() and ToUpper()
2023-08-13 23:22:22 +02:00
Tomasz Kapuściński
ee9f9d875d
Replaced remaining MakeUnique
2023-08-13 17:39:12 +02:00
Tomasz Kapuściński
b12e5ad7cd
Replaced boost::replace_all with StrUtils::Replace
...
Also fixed a bug in it and added tests for it.
Changes based on f0f6f61cab
2023-08-09 21:43:15 +02:00
Tomasz Kapuściński
83b9ded0dc
Merge branch 'dev' into dev-graphics-overhaul
2023-08-08 01:01:57 +02:00
Tomasz Kapuściński
a16771425a
Updated license headers
2023-08-06 23:15:48 +02:00
Tomasz Kapuściński
8533be8d5c
Replaced MakeUnique and MakeUniqueArray with std::make_unique
2022-02-26 18:48:51 +01:00
Tomasz Kapuściński
cbf661f69f
Disabled tests for light manager as it needs future refactoring
2022-02-03 19:35:30 +01:00
Tomasz Kapuściński
3bd4fee844
Merge branch 'dev' into dev-graphics-overhaul
...
# Conflicts:
# src/graphics/engine/camera.cpp
# src/object/auto/autonuclearplant.cpp
# src/object/auto/autopowerplant.cpp
# src/object/interface/powered_object.h
# src/object/motion/motionvehicle.cpp
# src/object/old_object.cpp
# src/object/old_object.h
# src/object/task/taskmanip.cpp
# src/object/task/taskmanip.h
# src/object/task/tasktake.cpp
2022-02-02 18:11:06 +01:00
Tomasz Kapuściński
d9073de251
Removed unnecessary tests and include
2022-01-05 21:08:28 +01:00
Tomasz Kapuściński
208f142cd2
Made Math::Matrix an alias to glm::mat4, partial refactors
2022-01-05 00:35:41 +01:00
Tomasz Kapuściński
0bba168f94
Removed vector.h, refactored redundant functions and moved remaining ones to func.h
2022-01-04 20:43:36 +01:00
Tomasz Kapuściński
db3b1d74d1
Refactored unnecessary Normalize, DotProduct, CrossProduct and Clamp functions
2022-01-04 02:10:36 +01:00
Tomasz Kapuściński
50fe905455
Removed Math::Vector alias and refactored remaining uses of it
2022-01-04 01:39:55 +01:00
Tomasz Kapuściński
d25d6124a9
Changed Math::Vector into alias to glm::vec3
2021-12-28 23:01:30 +01:00
MrSimbax
193d105a3f
Refactor CBotUT.TestSaveStateIoFunctions
...
Split the test into several parametrised tests for each data type.
Add more tests with different values.
Fix the ReadBinary() function in order to fix the ReadDouble() function
for negative values (the sign bit was being lost).
2021-12-09 20:44:31 +01:00
Mateusz Przybył
ae179d9005
Merge pull request #1440 from melex750/dev-insect-from-egg
...
Fix saving/loading programs for insects from AlienEgg
2021-12-04 10:04:49 +01:00
MrSimbax
80f074e2ba
Update license headers
2021-09-11 15:53:59 +02:00
MrSimbax
a69b88e09a
Move time related functions out of CSystemUtils
...
GetCurrentTimeStamp() has not been moved because of
CApplication unit tests.
2021-09-11 13:26:38 +02:00
MrSimbax
5daaba6e64
Fixes after merge
...
Fix mistakes after previous merge and make it compile.
Rewrite the function interpolating between time stamps as it was
written after the original pull request was created. Add unit tests
for it.
I couldn't help myself and also changed some enums to enum classes and
did some renames.
2021-09-11 12:44:26 +02:00
MrSimbax
2b107736e2
Merge branch 'platform-independent' of https://github.com/AbigailBuccaneer/colobot into AbigailBuccaneer-platform-independent
2021-09-11 10:47:39 +02:00
MrSimbax
5e37f84bc7
Merge branch 'dev' into dev-modern
2021-09-04 19:11:24 +02:00
Emxx52
efad9a4dae
Merge pull request #1438 from melex750/dev-cbot-fix-leaks
...
CBOT bug fixes and improved performance
2021-08-14 20:15:58 +02:00
melex750
55d6c431f2
Fix a bug in WriteStream and ReadStream
...
Added a unit test to confirm reliability of I/O
functions used by SaveState and RestoreState.
2021-06-25 18:50:15 -04:00
melex750
9f5ee21bbe
Restore repeat(n) instruction
...
fixes #1403
2021-06-11 23:28:53 -04:00
melex750
993a6adf6e
Fix inherited data members not being saved
...
* Removed erroneous 'parent instance' from CBotVarClass.
* Fixed output of CBVarClass::GetValString()
2021-06-11 22:44:20 -04:00
MrSimbax
69d2d39c36
Add ability to use arrays in colobot.ini
2020-07-18 18:06:14 +02:00
MrSimbax
2143f21828
Fix linter
2020-07-14 13:43:33 +02:00
immibis
a2aeef0155
When game speed is 2 or higher, run multiple ticks.
2020-07-11 21:20:55 +02:00
MrSimbax
81ddda4515
Make tests work with targets
2020-07-11 12:16:20 +02:00
tomangelo
37e4ed8029
Updated license headers ( #1317 )
...
* Updated headers
* Updated more headers
2020-07-07 10:19:36 +02:00
melex750
a5909ac4de
Add private and protected keywords for methods
...
fixes #854
fixes #882
2020-07-06 11:32:15 +02:00
melex750
4a62e9ed76
Separate searching for functions and methods
...
fixes #207
fixes #1016
2020-07-06 11:32:15 +02:00
melex750
5f089f4a9b
Fix and improve switch...case ( #1008 )
2019-04-11 05:34:00 -04:00
melex750
1058a326ad
Add binary and character literals in CBOT
2019-04-11 05:14:11 -04:00
melex750
250ea57e8b
Fix arithmetic operations with integers ( #993 )
...
Also fixed unsigned right shift operator ">>>"
2019-04-11 04:15:27 -04:00
melex750
a66b3d0672
Refactor SaveState and RestoreState to use streams
2019-04-11 04:13:13 -04:00
AbigailBuccaneer
807d6e40e3
Fix -Wsuggest-override compile errors in tests
...
Fixes #1160
2018-05-09 08:49:23 +01:00
krzys_h
6289ea91b1
Merge pull request #1140 from AbigailBuccaneer/Wsuggest-override
...
Compile with -Wsuggest-override under GCC
2018-04-24 14:12:31 +02:00
AbigailBuccaneer
4119e669d1
Remove central tracking of SystemTimeStamp
...
SystemTimeStamp used to be an opaque class, as it was provided by
`system_{linux/other/windows}.h`. Because of this, code dealt in
SystemTimeStamp pointers, and getting the current timestamp required a
memory allocation. Now SystemTimeStamp is just a
`std::chrono::time_point`, we can make the code cleaner and faster by
just directly keeping SystemTimeStamp instead of pointers around.
2018-04-20 09:57:10 +01:00
krzys-h
1c2bdc9cab
Update license headers
2018-04-20 02:08:50 +02:00
AbigailBuccaneer
6978c28ee0
Compile with -Wsuggest-override under GCC
...
Clang by default compiles with -Winconsistent-missing-override, which
warns when a class declares virtual functions that override those in the
base class, and some but not all of them are explicitly declared
`override`.
GCC doesn't support this option, but has a stronger version,
-Wsuggest-override. In combination with -Werror, this means that any
virtual function that overrides another *must* be explicitly declared as
`override`.
This commit enables -Wsuggest-override where available. This means that
GCC users can't break the Clang build with inconsistent overrides (see
#1113 and #1114 ) and consequently that any build that passes the pull
request CI build on Jenkins won't break because of inconsistent
overrides.
2018-04-19 19:58:44 +01:00
melex750
c03dfc1284
Add escape codes for string literals
2017-07-22 14:29:05 -04:00
krzys-h
28081bfd3e
Fix clang builds
...
see #955
2017-05-24 14:00:34 +02:00
melex750
f80db9e8fb
Fix using negative numbers in default arguments
...
Issue #919
2017-03-03 02:11:10 -05:00