Tomasz Kapuściński
510fe6804a
Extracted CBot tools
2023-08-22 22:01:24 +02:00
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
d39f1999e7
Remove support for MXE
2021-09-04 21:52:58 +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
df7cdd4b8e
Fix some minor issues after CR
2020-07-14 13:51:07 +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
8b86a1f222
Merge pull request #1142 from AbigailBuccaneer/Wmissing-declarations
...
Compile with -Wmissing-declarations
2018-04-24 14:12:43 +02: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
ea64edaa0b
Compile with -Wmissing-declarations
...
-Wmissing-declarations enforces that every function (except for static
functions) must be declared separately before it's defined. This
essentially enforces that every function must be either static, or
declared in a header elsewhere.
This helps the optimizer, as it can do a better job of inlining if it
knows that a function won't be used outside of a given file. It also
helps -Wunused-function (which is enabled by -Wall) find more unused
functions.
Note that Clang spells this option -Wmissing-prototypes, which
confusingly is the name of a related but different warning option under
GCC.
2018-04-21 16:49:27 +01: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