Commit Graph

323 Commits (250ea57e8b2dfd081116ae93b07122e582c87363)

Author SHA1 Message Date
melex750 397e312424 Fix RestoreState for subclass instance vars 2016-08-03 17:52:53 -04:00
melex750 48666c4604 Fix not calling destructors after save/reload 2016-08-03 17:42:10 -04:00
krzys-h 9e545d0d39 Fixed colobot-lint warnings 2016-07-09 20:39:18 +02:00
melex750 d0d0c4f197 Fix class not unlocked when program is stopped
#626
2016-06-24 17:29:32 -04:00
melex750 64157090e6 Fix crash when calling method on a null object 2016-06-24 17:18:11 -04:00
melex750 51665e8396 Fix "new" keyword syntax checking 2016-06-24 17:03:50 -04:00
melex750 66984a4bb3 Fix using compound-assignment with an array
...that was initialized in the definition
2016-06-24 17:00:41 -04:00
melex750 0d74b4f36b Fix initializing an array using variables
Resolves a conflict between CBotListArray and CBotExprVar
2016-06-24 16:56:17 -04:00
krzys-h c304ecd0ca Changed arrays to use {} when converted to string; added tests 2016-06-21 12:58:43 +02:00
krzys-h 5f7a8dbd5d Fixed string values with spaces (closes #791) 2016-06-21 12:57:45 +02:00
melex750 37ab015c8d Fix conversion to string with = operator 2016-05-29 06:55:28 -04:00
melex750 6db2832577 Fix conversion to string with + operator 2016-05-29 06:45:08 -04:00
melex750 0165e8f348 Fix and document TypeCompatible 2016-05-29 06:40:42 -04:00
krzys-h b56cd11c98 Added C++ operator overloads to CBotVar 2016-05-29 00:06:34 +02:00
krzys-h df111dbf98 Refactored CBotVar to templates 2016-05-28 23:28:12 +02:00
melex750 6491ce0aa5 Fix passing "this" as an argument to a method 2016-05-24 10:30:20 -04:00
melex750 c19f97bc24 Fix RestoreState to assign IDs to instance vars 2016-05-24 10:09:44 -04:00
Mateusz Przybył 734e6e97c0 Group source files for IDE projects in CMake
Merge pull request #773 from MrSimbax/msvc-project-org-cmake
2016-05-02 12:14:18 +02:00
melex750 e7942962d3 Fix checking parameters in CBotFunction 2016-04-19 10:36:06 -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
krzys-h 14721001e5 Merged PR #737: Fix for various issues with initializing variables in CBOT 2016-04-03 21:08:52 +02:00
Didier Raboud a06035ecb8 Fix occured/occurred spelling error 2016-03-30 13:40:26 +02:00
krzys-h bfdce26721 Fixed issues with CBotDebug::DumpCompiledProgram on certain compilers
See https://colobot.info/forum/showthread.php?tid=721
2016-03-25 16:05:13 +01: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 5b3da83715 Fix inline declaration of an array of string 2016-03-20 13:27:02 -04:00
melex750 707ef97626 Fix syntax+type checking, base types+CBotDefArray 2016-03-20 07:54:41 -04:00
melex750 accfc93573 Add syntax and type checking for class member vars 2016-03-20 07:50:42 -04:00
melex750 4a29e8406d Fix syntax and type checking for CBotListArray 2016-03-20 07:48:20 -04:00
krzys-h 967aa22330 Allow assigning to array in initialization from function (#624, #728) 2016-03-13 20:27:10 +01:00
krzys-h 4d99a62d37 Fixed crash with array initialization syntax going out of range (#698) 2016-03-13 19:26:11 +01:00
Mateusz Przybył 7b286d77b5 Fix "std::max" errors in MSVC 2016-02-21 14:29:09 +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
krzys-h 84521ef08a Fixed CBotClass::FreeLock crash on some compilers 2016-01-23 21:33:58 +01:00
krzys-h 9ff978155c Fix crash with CBot string functions out of range (closes #704) 2016-01-23 21:07:19 +01:00
krzys-h 048534e89d Fixed some errors reported by colobot-lint 2016-01-23 20:58:03 +01:00
krzys-h 344cda4ae6 Add missing override keywords 2016-01-23 20:49:01 +01:00
Piotr Dziwinski 2af89ab378 Fix libc++ build 2016-01-23 20:30:43 +00:00
krzys-h 089c1ff00c Fixed crash in CBotStack::BreakReturn 2016-01-15 19:59:03 +01:00
krzys-h 70555d984c Small CBotTwoOpExpr cleanup 2016-01-05 13:04:15 +01:00
krzys-h d63773d89d Refactored EOX 2015-12-31 18:57:11 +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 2245863fcd Some more random refactoring in CBot 2015-12-31 16:11:35 +01:00
krzys-h fa92605225 Renamed some CBotInstr classes 2015-12-31 14:44:19 +01:00
krzys-h 10b201b9e6 Description of CBot instructions 2015-12-30 19:13:32 +01:00
krzys-h e3c53f9912 CBot compiled instruction graphs; some code cleanup 2015-12-27 16:51:57 +01:00
krzys-h 500bd1753f Changed array initialization to use {...} (#698) 2015-12-26 20:05:00 +01:00
krzys-h ef91fb8e9d Fixed commandline interpreter 2015-12-26 14:37:36 +01:00
krzys-h 07a4d6a16b CBot namespace 2015-12-26 14:29:10 +01:00
krzys-h 6b959a5606 Mostly finished CBotStack docs 2015-12-25 22:03:23 +01:00
krzys-h 9b3b701785 More CBotStack docs 2015-12-25 20:47:30 +01:00
krzys-h c72cfa234b Started docs of CBotStack; random refactorings 2015-12-25 19:48:31 +01:00
krzys-h 40b7d986aa CBotVar::GetTypeMode enum 2015-12-25 19:16:54 +01:00
krzys-h 0807b75d4b Fixed object:: with other types (#207) 2015-12-25 15:13:52 +01:00
krzys-h 5443006979 Refactor public function list 2015-12-24 15:07:40 +01:00
krzys-h 921c266311 Some random refactoring 2015-12-24 14:52:17 +01:00
krzys-h ff081aff49 Made CBotExternalCallList combatible with class calls 2015-12-24 12:57:37 +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 3170395576 CBotCall refactoring 2015-12-24 00:41:44 +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 8437a9bdd2 CBot testing framework; fixed a few bugs 2015-12-23 20:39:56 +01:00
krzys-h d577e7f41b Tests for CBotToken 2015-12-23 18:44:14 +01:00
krzys-h 30fea5893b Fixed crash from previous commit (oops again) 2015-12-23 17:50:10 +01:00
krzys-h 8fa5b208c2 Compile fix after previous commit; fix MSVC errors; added missing license headers 2015-12-23 17:37:26 +01:00
krzys-h 6482001b9b CBotToken docs 2015-12-23 17:28:21 +01:00
krzys-h 6ef14617a0 More random CBotToken refactoring, removed CBotToken::Delete 2015-12-23 16:46:41 +01:00
krzys-h fbdc071659 Some random CBotProgram and CBotToken refactoring 2015-12-23 16:11:03 +01:00
krzys-h 9b4a6e0131 TokenType enum 2015-12-23 14:05:29 +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 45a433525f CBotClass usage examples 2015-12-22 16:32:51 +01:00
krzys-h 214e95c0b9 Fixed ** CBot operator 2015-12-22 16:06:55 +01:00
krzys-h 33ac246297 Documentation for CBotVar and all subclasses 2015-12-22 15:59:57 +01:00
krzys-h 2519825104 CBotVar::ProtectionLevel enum 2015-12-21 23:07:40 +01:00
krzys-h c8498740f2 Minor changes to CBotProgram docs 2015-12-21 21:46:50 +01:00
krzys-h eedf8dacea Documentation for CBotProgram; some CBotError refactoring 2015-12-21 21:35:20 +01:00
krzys-h 6fee1ee12b Docs for CBotTypResult.h and CBotEnums.h 2015-12-21 17:54:55 +01:00
krzys-h 76c04e10d5 Removed some unused CBot code 2015-12-21 16:46:44 +01:00
krzys-h 73f8bd5490 Made CBot errors an enum 2015-12-20 19:16:01 +01:00
krzys-h 5db1254dd8 Unified CBot error naming 2015-12-20 19:01:03 +01:00
krzys-h 51644369cb Moved standard math and file functions into CBot library 2015-12-20 18:36:20 +01:00
krzys-h 9ec61d93e5 Refactored CBotString and const char* to std::string in CBot engine
A lot of changes, so it needs lots of testing
2015-12-20 16:19:10 +01:00
krzys-h 87a34ba1ff Refactor CBotString::LoadString 2015-12-20 15:06:35 +01:00
krzys-h 3eeab0f9b7 Removed CBotStringArray 2015-12-20 14:49:30 +01:00
krzys-h 5e23426b53 Refactored CBotString to use std::string and CBotStringArray to use std::vector 2015-12-20 14:24:49 +01:00
krzys-h 964d3574fd Fixed treating 'bool' as 'int' in CBot engine
Appears to fix #199 - further testing required
2015-12-19 21:20:41 +01:00
Grunaka 30c3d03141 Remove header files from to the list of .cpp files in CBot CMakeLists.txt. 2015-12-06 16:30:13 +01:00
Grunaka f45d657ab0 Add comments delete by commit 1a6b5ded64. 2015-12-06 15:42:09 +01:00
Grunaka aa3f8c0cd1 Add missing include in CBot.h. 2015-12-06 15:37:18 +01:00
Grunaka 0f491ce433 Add commments in CBot.h 2015-12-06 15:05:22 +01:00
Grunaka f9ab37fd14 Add comment deleted by commit 573e1152e3. 2015-12-06 14:49:27 +01:00
Grunaka 17704c4d54 Delete resource.h. 2015-12-06 14:46:38 +01:00
Grunaka 2048ecb148 Delete CBot.cpp. 2015-12-06 14:45:31 +01:00
Grunaka de5a57f793 Change CBot default include directory. Make all include directive absolute. 2015-12-01 23:25:36 +01:00
Grunaka fa9dc0dace Start cleaning of files CBotFileUtils.h and CBotFileUtils.cpp. Pass CBotTypResult parameter as reference. 2015-12-01 23:25:36 +01:00