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
Grunaka
5c7a665639
Add CBot.h, CBotEnums.h and CBotDefines.h in CMakeLists.txt.
2015-12-01 23:25:36 +01:00
Grunaka
4a9afdc525
Move enum from resource.h to CBotEnums.h. Delete file resource.h.
2015-12-01 23:25:36 +01:00
Grunaka
922082b360
Move define from resource.h to CBotDefines.h.
2015-12-01 23:25:36 +01:00
Grunaka
ece0666954
Create new file CBot.h. Included only useful interfaces.
2015-12-01 23:25:36 +01:00
Grunaka
575ff47c82
Cleaning the CBot.h file.
2015-12-01 23:25:36 +01:00
Grunaka
cedaaad459
Deleted file CBot.cpp.
2015-12-01 23:25:36 +01:00
Grunaka
b28e2aec01
Moving some define from CBot.h to CBotDefines.h.
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
889c0fbe8e
Split file StringFunctions.cpp into two files StringFunctions.h and StringFunctions.cpp.
2015-12-01 23:25:36 +01:00
Grunaka
1a6b5ded64
Delete CBotDll.h
2015-12-01 23:25:36 +01:00
Grunaka
2f7932ff69
Moving defines from CBotDll.h to CBotDefines.h.
2015-12-01 23:25:36 +01:00
Grunaka
43ac0e35f2
Moving global files function from CBot.cpp to CBotFileUtils.cpp
2015-12-01 23:25:36 +01:00
Grunaka
7b200a0922
Moving global CompileParams, TypeCompatible and TypesCompatibles from CBot.cpp to CBotInstrUtils.cpp.
2015-12-01 23:25:36 +01:00
Grunaka
51f0675e41
Moving macro MAX from CBot.h to CBotTwoOpExpr.cpp.
2015-12-01 23:25:36 +01:00
Grunaka
3b0561056a
Moving CBotTypResult class in its own header and source files.
2015-12-01 23:25:36 +01:00
Grunaka
942d7195e4
Moving CBotString class in its own header and source files.
2015-12-01 23:25:36 +01:00
Grunaka
67dff4ef65
Moving CBotStringArray class in its own header and source files.
2015-12-01 23:25:36 +01:00
Grunaka
ef4e2f08a3
Moving CBotInstr class in its own header and source files.
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
660f17454a
Moving CBotVar 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
143eecd791
Moving CBotCallMethode class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
6d340e80ab
Moving CBotDefParam class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
0a1b7da2a8
Moving CBotClass functions into CBotClass.cpp. Moving gloable function used by CBotClass and CBotFunction into CBotUtils.cpp.
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
70dc6785f2
Moving CBotProgram class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
77d738634c
Moving CBotClass class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
63ab9d7301
Moving CBotVarArray 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
Grunaka
0373692ea1
Moving CBotInt class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
b01e2180d8
Moving CBotInstArray class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
ede0d03026
Moving CBotListArray class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
8c04d7fc65
Moving CBotIf class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
c0e2201c70
Moving CBotReturn class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
14961dbc57
Moving CBotEmpty class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
17cbae8e68
Moving CBotBoolean class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
ff72d1a77f
Moving CBotFloat class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
13b82b7e8e
Moving CBotIString class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
bbf2e48802
Moving CBotClassInst class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
dc8a6b3273
Moving CBotCondition class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
d89fd629a2
Moving CBotLeftExpr class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
4b10358df7
Moving CBotFieldExpr class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
d0cfdfb998
Moving CBotIndexExpr class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
3c1296b4b9
Moving CBotExpression class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
d44df45d26
Moving CBotTwoOpExpr class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
8ee0b7df56
Moving CBotLogicExpr class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
4cd7a7a031
Moving CBotBoolExpr class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
75f5126ddd
Moving CBotParExpr class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
f6cc7d2c9c
Moving CBotExprUnaire class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
8eff62a78c
Moving CBotBlock class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
840da007a9
Moving CBotListInstr class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
0216359445
Moving CBotInstrCall class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
631621fb7e
Moving CBotInstrMethode class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
d708be50e7
Moving CBotExprVar class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
5343c15d60
Moving CBotPostIncExpr class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
605b1b244a
Moving CBotPreIncExpr class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
a878b0d252
Moving CBotLeftExprVar class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
2f52520421
Moving CBotExprBool class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
27a2c0b55a
Moving CBotExprNull class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
85756b4da1
Moving CBotExprNan class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
d70527db66
Moving CBotNew class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
f8778e8c03
Moving CBotExprNum class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
a0c2c90c9c
Moving CBotExprAlpha class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
562752b653
Moving CBotWhile class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
a80245b012
Moving CBotThrow class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
18739d135b
Moving CBotCatch class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
179ca18c58
Moving CBotTry class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
8da5c675a4
Moving CBotBreak class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
6d2fbf3ea4
Moving CBotCase class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
5629bce950
Moving CBotSwitch class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
dd6f6e29c2
Moving CBotListExpression class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
981f41d8a3
Move CBotFor class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
1694776ab6
Move CBotDo class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
573e1152e3
Moving CBOT enumerated in a separate file called CBotEnum.h
2015-12-01 23:25:34 +01:00
Grunaka
b42c1376e5
Move CBotToken class in its own header and source files.
2015-12-01 23:25:25 +01:00
krzys-h
8a160961fc
Removed STARTDEBUGDD
2015-11-21 17:33:48 +01:00
krzys-h
0c21631c9c
Updated constants for "catch"
...
* removed compile-time errors since they cannot be caught anyway
* added missing runtime errors
2015-11-21 17:26:56 +01:00
krzys-h
9bea0355f0
Removed some unused strings
2015-11-21 16:54:21 +01:00
krzys-h
6590652d9e
Added commandline CBot interpreter (for testing purposes)
2015-11-21 16:31:22 +01:00
krzys-h
7b96ae65cd
Removed unused CBot files
...
Don't even ask what they were doing here. Just don't. :P
2015-11-21 14:52:56 +01:00
krzys-h
1838e7bfde
Removed unused "final" keyword
2015-11-21 14:44:48 +01:00
krzys-h
2ed1494574
Syntax highlighting for "super" keyword, closes #680
2015-11-21 14:00:38 +01:00
melex750
b0dbb11fac
Fixed class declaration change
...
see #540
2015-11-21 13:49:49 +01:00
melex750
2b03ed3a21
Fixed calling not overriden methods in CBot
...
see #540
2015-11-21 13:27:40 +01:00
Piotr Dziwinski
13f0159705
Fix ambiguous overload resolution
...
One operator+ for CBotString is enough
2015-11-02 22:17:53 +00:00
Piotr Dziwinski
eeea31408b
Fix operator+ semantics in CBotString
2015-11-02 22:11:02 +00:00
Grunaka
6a396e1522
Add unit tests for class CBotString.
...
Add comments in class CBotString.
Change existing comments in class CBotString to be compliant with doxygen.
Add function "const char* CBotString::CStr() const".
Add null pointer check in function "const CBotString& CBotString::operator+=(const CBotString& str)"
Remove functions "CBotString CBotString::Mid(int nFirst, int nCount) const" and "CBotString CBotString::Mid(int nFirst) const" because they were doublons of function "CBotString CBotString::Mid(int nFirst, int lg) const"
2015-11-01 17:03:30 +01:00
Piotr Dziwinski
d11ebc891c
Bring to zero some types of issues reported by colobot-lint
2015-10-04 00:09:10 +02:00
Piotr Dziwinski
61a3ba2800
Fix undefined function colobot-lint issues
2015-09-29 21:44:24 +02:00
Piotr Dziwinski
c3d4d46583
Fix missing empty line after license header
2015-08-22 17:52:07 +02:00
Piotr Dziwinski
b93f610930
Fix license header in all files
2015-08-22 16:40:02 +02:00
Piotr Dziwinski
a63a959dbe
Apply clang-modernize -use-nullptr
2015-08-17 22:40:52 +02:00
Piotr Dziwinski
ba3284b8b8
Apply clang-modernize -add-override
2015-08-17 22:12:09 +02:00