Commit Graph

83 Commits (83b9ded0dcd552d446dd186355073ee309e44c94)

Author SHA1 Message Date
Tomasz Kapuściński a16771425a Updated license headers 2023-08-06 23:15:48 +02:00
MrSimbax 80f074e2ba Update license headers 2021-09-11 15:53:59 +02:00
melex750 a279541198 Make all CBotCStack data members non-static 2021-06-11 22:47:33 -04:00
tomangelo 37e4ed8029
Updated license headers (#1317)
* Updated headers

* Updated more headers
2020-07-07 10:19:36 +02:00
melex750 55c0c3221d Add missing const keyword in CBotClass.cpp 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 a66b3d0672 Refactor SaveState and RestoreState to use streams 2019-04-11 04:13:13 -04:00
krzys_h 5283865a5c
Merge pull request #1136 from colobot/dev-cbot-optimizations
Some CBot code optimizations
2018-05-07 20:53:52 +02:00
krzys-h 1c2bdc9cab Update license headers 2018-04-20 02:08:50 +02:00
krzys-h 477dc0cae7 Some CBot code optimizations 2018-04-06 15:02:06 +02:00
Abigail 11d950221b Fix all compiler warnings and enable -Werror (#955)
This removes all compilation warnings on:
* g++ 4.7.4, 4.8.5, 4.9.4, 5.4.1, 6.3.0, 7.0.1-svn246759
* clang++ 3.9.1, 4.0.0, 5.0.0-svn303007
2017-05-22 11:10:35 +02:00
melex750 2ff8251a81 Fix game crashing with syntax errors 2017-01-24 13:47:00 -05:00
melex750 8e54f7ca9c Fix memory leaks in CBOT engine 2017-01-16 21:16:59 +01:00
melex750 64bc1f1afb Fix constructor/destructor and field 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 88c6818cfd Fix code style issues 2016-11-26 13:48:12 +01:00
krzys-h 48f703282e Refactor CBotCallMethode -> CBotExternalCall 2016-11-11 21:58:25 +01:00
krzys-h 191151eb7b Refactor CBotClass and CBotFunction list to std::list 2016-11-11 19:37:19 +01:00
krzys-h 266b34d578 Make CBotFunction implement CBotLinkedList 2016-11-11 18:16:12 +01:00
krzys-h 8764d28e9e Remove remaining "this != nullptr" checks in CBOT, closes #828 2016-11-11 18:03:46 +01:00
krzys-h bb9d1c8265 Remove "this == nullptr" checks in CBOT, fixes #828 2016-10-02 21:36:59 +02: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
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 66218319dd Add support for circular references
Issue #433
2016-08-09 11:59:07 -04:00
melex750 860cdb0aea Fix calling multi-level inherited methods 2016-08-03 19:13:21 -04:00
melex750 d0a8a32a57 Fix RestoreMethode when calling inherited methods 2016-08-03 18:34:39 -04:00
melex750 748f0034bd Fix array in a class not working with sizeof()...
...when no assignment is made in the definition.

It should pass this unit test now:
TEST_F(CBotUT, DISABLED_ArraysInClasses)
2016-04-05 15:02:41 -04:00
melex750 61440392d2 Fix initializing static array in class definition
issue #32
2016-04-05 14:00:15 -04:00
melex750 02133d0bd4 Fix method overloading 2016-03-21 07:56:52 -04:00
melex750 8b7410f803 Fix class.arrays using size of one before comma 2016-03-21 06:11:55 -04:00
melex750 6be1f56288 Add error code no expression, remove some bad code 2016-03-20 20:55:22 -04:00
melex750 accfc93573 Add syntax and type checking for class member vars 2016-03-20 07:50:42 -04:00
krzys-h 977607a934 Updated license headers 2016-02-13 14:11:30 +01:00
krzys-h 84521ef08a Fixed CBotClass::FreeLock crash on some compilers 2016-01-23 21:33:58 +01:00
krzys-h a70381e1c8 Refactored CBotVarClass instance list to std::set 2015-12-31 16:54:13 +01:00
krzys-h dcc29442bd Refactor public classes list to std::set 2015-12-31 16:30:54 +01:00
krzys-h 48ab72d056 CBotClass::Lock() refactoring 2015-12-31 16:11:49 +01:00
krzys-h fa92605225 Renamed some CBotInstr classes 2015-12-31 14:44:19 +01:00
krzys-h 07a4d6a16b CBot namespace 2015-12-26 14:29:10 +01:00
krzys-h 921c266311 Some random refactoring 2015-12-24 14:52:17 +01:00
krzys-h ae544c71ae Made CBotExternalCallList not static 2015-12-24 12:36:09 +01:00
krzys-h 8e01a208c1 More extensible external call interface 2015-12-24 11:57:34 +01:00
krzys-h 3008e18fc6 Extracted most of linked list logic into a template class 2015-12-23 23:34:11 +01:00
krzys-h 30fea5893b Fixed crash from previous commit (oops again) 2015-12-23 17:50:10 +01:00
krzys-h 6ef14617a0 More random CBotToken refactoring, removed CBotToken::Delete 2015-12-23 16:46:41 +01:00
krzys-h c9e0249008 Better CBot class destructor parsing (#257)
The previous one broke the NOT (~) operation parsing

This reverts commit 7c8a31c074.
2015-12-23 13:04:46 +01:00
krzys-h 2519825104 CBotVar::ProtectionLevel enum 2015-12-21 23:07:40 +01:00
krzys-h 76c04e10d5 Removed some unused CBot code 2015-12-21 16:46:44 +01:00
krzys-h 5db1254dd8 Unified CBot error naming 2015-12-20 19:01:03 +01:00