MrSimbax
69d2d39c36
Add ability to use arrays in colobot.ini
2020-07-18 18:06:14 +02:00
immibis
a2aeef0155
When game speed is 2 or higher, run multiple ticks.
2020-07-11 21:20:55 +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
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
melex750
92a8c48953
Add syntax for parameters with default values
...
Also fixes #642
2017-01-24 15:19:03 -05:00
melex750
baba6081b3
Add checking for return statements in functions
...
issue #30
2017-01-24 14:41:22 -05:00
melex750
2ff8251a81
Fix game crashing with syntax errors
2017-01-24 13:47:00 -05:00
melex750
64bc1f1afb
Fix constructor/destructor and field syntax
2017-01-16 21:16:59 +01:00
melex750
8fc0151444
Fix increment and decrement syntax
2017-01-16 21:16:59 +01:00
piotrwalkusz1
d7fae300b9
Fix crash on class redefinition, closes #703 ( #890 )
2017-01-15 20:28:52 +01:00
krzys-h
191151eb7b
Refactor CBotClass and CBotFunction list to std::list
2016-11-11 19:37:19 +01:00
melex750
9ab7f7d140
Fix access to protected and private variables
2016-09-17 08:00:34 -04:00
melex750
3debfb9182
Fix finding in-class methods when searching by ID
2016-09-17 07:59:34 -04:00
melex750
4a14a44f3f
Add implicit cast and null for passing arguments
2016-09-17 07:58:39 -04:00
melex750
3146d4ef35
Add method chaining for class constructor calls
2016-08-14 16:56:17 -04:00
krzys-h
d411c5ebc0
Allow circular references from different classes ( #814 )
...
Conflicts:
test/unit/CBot/CBot_test.cpp
2016-08-09 21:10:07 +02:00
melex750
71aa7e468b
Add unit tests for circular reference
2016-08-09 14:55:56 -04:00
krzys-h
b9d4d57e33
Syntax sugar: Accessing members of returned objects ( #808 )
...
Conflicts:
src/CBot/CBotInstr/CBotInstrMethode.h
2016-08-09 20:28:37 +02:00
melex750
8b3c4302d2
Add more unit tests for inheritance
2016-08-07 10:01:10 -04:00
melex750
f3bf56d9e3
Add unit tests for returned object member access
2016-08-06 05:22:40 -04:00
melex750
c89e6f4c28
Begin adding unit tests for inheritance
2016-08-04 01:19:56 -04:00
krzys-h
81b7bcc5bc
Moved system modules from app/ to common/system/
2016-07-24 14:38:49 +02:00
krzys-h
11d40197ee
Added some more CBot tests after #793
2016-07-04 12:23:48 +02:00
krzys-h
c304ecd0ca
Changed arrays to use {} when converted to string; added tests
2016-06-21 12:58:43 +02:00
krzys-h
543df84db6
Enabled more tests
...
See https://github.com/colobot/colobot/pull/783#issuecomment-226963085
2016-06-18 22:31:32 +02:00
krzys-h
f0ed20fd67
Enabled working tests after bf2e3cdfae
2016-06-17 22:49:15 +02:00
krzys-h
7b32f6388f
Enabled fixed test
2016-05-28 23:33:49 +02:00
krzys-h
620620fa61
Reenabled working tests after fc7e621471
2016-05-27 11:45:02 +02:00
krzys-h
7c551dc39d
Added unit tests for #768
2016-04-19 21:09:41 +02:00
krzys-h
efc5431da2
Enabled ArraysInClasses test after 1941020993
2016-04-07 21:28:16 +02:00
krzys-h
059a546689
Reenabled unit tests that started working after 14721001e5
2016-04-03 21:09:41 +02:00
krzys-h
33f411371c
Added string arrays unit test
2016-03-20 15:19:08 +01:00
krzys-h
4479a196f9
Fix colobot-lint warnings
2016-03-15 17:39:00 +01:00
krzys-h
967aa22330
Allow assigning to array in initialization from function ( #624 , #728 )
2016-03-13 20:27:10 +01:00
krzys-h
977607a934
Updated license headers
2016-02-13 14:11:30 +01:00
krzys-h
b96305060b
Fix colobot-lint warnings
2016-01-23 21:59:02 +01:00