Commit Graph

70 Commits (993a6adf6e9874be7c36d6e1776767d687f92628)

Author SHA1 Message Date
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
tomangelo 37e4ed8029
Updated license headers (#1317)
* Updated headers

* Updated more headers
2020-07-07 10:19:36 +02:00
melex750 a46fee4d4e Don't reset timer in CBotStack::AllocateStack
The timer is already reset in CBotProgram::Run.
This prevents many cases where the game will hang or rendering is interrupted.
This fixes behavior of the script example in #874.
The script example in #971 doesn't hang the game anymore.
2020-07-06 11:32:15 +02:00
melex750 c0cdd84e85 Add missing primitive data types in CBOT 2019-04-11 04:19:29 -04:00
melex750 a66b3d0672 Refactor SaveState and RestoreState to use streams 2019-04-11 04:13:13 -04:00
krzys-h 1c2bdc9cab Update license headers 2018-04-20 02:08:50 +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 8e54f7ca9c Fix memory leaks in CBOT engine 2017-01-16 21:16:59 +01:00
krzys-h 35d60aaae5 Remove remaining occurences of "this == nullptr" (#828) 2016-11-11 19:45:57 +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 c9c02f5461 Fix assigning instance to pointer for inheritance 2016-08-04 01:06:37 -04:00
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
melex750 c19f97bc24 Fix RestoreState to assign IDs to instance vars 2016-05-24 10:09:44 -04:00
krzys-h 977607a934 Updated license headers 2016-02-13 14:11:30 +01:00
krzys-h d63773d89d Refactored EOX 2015-12-31 18:57:11 +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 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 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 8437a9bdd2 CBot testing framework; fixed a few bugs 2015-12-23 20:39:56 +01:00
krzys-h 30fea5893b Fixed crash from previous commit (oops again) 2015-12-23 17:50:10 +01:00
krzys-h 2519825104 CBotVar::ProtectionLevel enum 2015-12-21 23:07:40 +01:00
krzys-h eedf8dacea Documentation for CBotProgram; some CBotError refactoring 2015-12-21 21:35:20 +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
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 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 de5a57f793 Change CBot default include directory. Make all include directive absolute. 2015-12-01 23:25:36 +01:00
Grunaka 751999064b Moving global files function from CBotProgram.cpp to CBotFileUtils.cpp. 2015-12-01 23:25:36 +01:00
Grunaka 013be673ce Moving CBotCStack class in its own header and source files. 2015-12-01 23:25:36 +01:00
Grunaka 2eeab6d4d0 Moving CBotVarClass function from CBotVar.cpp to CBotVarClass.cpp. 2015-12-01 23:25:36 +01:00
Grunaka a4f14650c6 Moving CBotVarInt class in its own header and source files. 2015-12-01 23:25:36 +01:00
Grunaka 44021e91f7 Moving CBotVarFloat class in its own header and source files. 2015-12-01 23:25:36 +01:00
Grunaka 1b3b2ea5a1 Moving CBotVarString class in its own header and source files. 2015-12-01 23:25:35 +01:00
Grunaka ade4aefb0e Moving CBotVarBoolean class in its own header and source files. 2015-12-01 23:25:35 +01:00
Grunaka c624d65649 Moving CBotVarClass class in its own header and source files. 2015-12-01 23:25:35 +01:00
Grunaka bd20f6303c Moving CBotVarPointer class in its own header and source files. 2015-12-01 23:25:35 +01:00
Grunaka 4712e0ef6a Moving CBotFunction class in its own header and source files. 2015-12-01 23:25:35 +01:00
Grunaka 394a49f5aa Moving CBotCall class in its own header and source files. 2015-12-01 23:25:35 +01:00
Grunaka e54d8f1ebc Moving CBotStack class in its own header and source files. 2015-12-01 23:25:35 +01:00