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
krzys-h
303dd17d58
Improved documentation of new object interface; removed unused Get/SetSoluceName
2015-08-17 00:43:32 +02:00
Piotr Dziwinski
2289d69735
Replace NULL -> nullptr
2015-08-16 12:43:42 +02:00
krzys-h
7e18757d29
CScript user pointer cleanup; moved some functions from COldObjectInterface to main CObject
...
* moved (Get|Set)Clip [renamed to (Get|Set)Collisions], (Get|Set)Team, (Get|Set)Proxy(Activate|Distance) and GetBotVar to main CObject class
* refactored scripting to pass CScript* as the user pointer, removing the need for GetRunScript()
* changed accessing of "object" class in CBot to use ->GetUserPtr()
* refactored object limits to remove (Start|Stop)ShowLimit from COldObject
* added notes on possible interfaces for most of the other COldObjectInterface functions
2015-08-11 17:51:39 +02:00
krzys-h
794d1f3cbe
Fixed "this" ( #547 )
2015-08-03 19:56:35 +02:00
Piotr Dziwinski
3b585d9f51
Some style and whitespace fixes
2015-08-02 11:36:36 +02:00
Victor Vieux
38c64940a5
this is not a type
...
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2015-07-29 00:37:29 -07:00
Piotr Dziwinski
7e289e7927
Add missing forward declaration in CBotToken.h
2015-07-23 20:48:35 +02:00
krzys-h
9e19d8433c
Removed old CBot-related files
2015-07-16 22:17:54 +02:00
krzys-h
4d7de592b4
Merged destructor parsing from tr00per/dev
...
Merge branch 'dev' of https://github.com/tr00per/colobot into dev
2015-07-13 19:24:43 +02:00
krzys-h
0e66104829
Hacked CBot engine to get pointers to CObject* in calls to class members
2015-07-13 18:40:13 +02:00
dreamer.dead
958ef43c1e
Address review remarks, fix names and errors in code.
2015-07-06 22:00:33 +03:00
dreamer.dead
b3c2d2c450
Set CBotVar::m_binit type to specific enum instead of plain int.
2015-07-05 23:39:55 +03:00
Tomasz Kapuściński
55b4e73a7a
Corrected a problem with strmid()
2015-05-22 20:34:35 +02:00
Tomasz Kapuściński
c945afafc8
Added bounds checking to CBotString type methods (should fix issue #429 )
2015-05-07 13:53:53 +02:00
Piotr Dziwinski
fcd904faf7
Fix non-integer expressions in #if
2015-04-27 18:17:03 +02:00
Artur Czajka
7c8a31c074
#257 Destructor is parsed and (by some magic) already used
2014-11-19 10:02:27 +01:00
krzys-h
c001c46cb5
Small fix to 72b4228abe
2014-10-19 15:27:00 +02:00
krzys-h
9fd6cf5449
Changed all occurences of PPC in the code to TerranovaTeam
2014-10-14 15:26:18 +02:00
krzys-h
72b4228abe
Fixed CBot debugger ( #325 )
2014-10-07 22:28:32 +02:00
Piotr Dziwinski
ac019c263d
Remove unnecessary delete checks ( #318 )
2014-08-09 22:45:07 +02:00
krzys-h
a56e69883f
Removed some unused code
2014-08-06 16:58:36 +02:00
Piotr Dziwinski
aab79c6b5d
Changed ASM_TRAP() to assert(0)
2013-11-25 20:03:06 +01:00
Piotr Dziwinski
81a6de41a5
Some further changes in CMakeLists
...
* removed DEV_BUILD autodetection (could be confusing)
* ignore desktop subdirectory on Windows
* some refactoring
2013-06-24 14:17:28 +02:00
Piotr Dziwinski
9f819088a6
gitignore update
...
* git should now ignore all generated files when building without
separate build directory
2013-06-22 22:44:03 +02:00
Piotr Dziwinski
8765d58b02
Fixed code formatting
...
* moved braces to new lines
* fixed some function/variable names
* fixed whitespace issues
2013-05-27 10:19:16 +02:00
adiblol
cc2e192f0d
Reorganize string parsing in CBotToken::NextToken to fix #212
2013-05-26 18:40:25 +02:00
krzys-h
69e52e5f24
Removed find() & repeat() functions
...
Issue #168
2013-04-12 23:28:44 +02:00
Piotr Dziwinski
4a30800cf1
Fixes for compiling on MSYS
...
* fixed SDL_main() and putenv() issues
* disabled desktop subdir for MSYS
* disabled building CBot_console for now
2013-03-22 19:17:08 +01:00
Piotr Dziwiński
001d37b257
CInstanceManager refactoring
...
* removed classes managed by CInstanceManager
except for CObject, CPyro, CBrain and CPhysics
because of dependencies
* refactored instance searching to use existing singleton instances of
CApplication, CEngine and CRobotMain and calling their getter
functions
2013-02-17 12:11:56 +01:00
Piotr Dziwinski
209c6412ae
Refactoring in tests infrastructure
...
* all tests are now in /test/ subdirectory
* unit tests concatenated to one executable (TODO: ui, common)
* preparation for test environments (OpenGL and others)
* removed old TestCBot
2013-02-03 20:03:36 +01:00
Marcin Zawadzki
ff5c890854
Small fix in detecting language. Fixes needed to compile code using clang
2013-01-05 23:03:26 +01:00
Piotr Dziwinski
3e4c1a1ad8
Replaced malloc/free with new/delete
...
- now new/delete used everywhere except for CBotStack, which
has to be fixed in other way
- some segfaults should be fixed with this
2012-12-28 13:37:08 +01:00
erihel
f0e76ad446
sound fix
2012-12-20 21:57:57 +01:00
Piotr Dziwinski
f77734e01c
Installation path fixes and CMakeLists refactoring
...
make && make install should now give a working installation.
2012-12-20 00:23:12 +01:00
Didier Raboud
7e9ef0c042
Put common CXX flags in common variables
...
CMAKE_CXX_FLAGS is taken into account in all builds; build-type-specific
flags are appended to it.
2012-12-19 16:55:00 +01:00
Didier Raboud
3c976c040b
Don't enforce CMake build type on users.
...
Only set CMAKE_BUILD_TYPE to Debug when no value is provided.
2012-12-19 16:52:17 +01:00
Didier Raboud
a7d837460f
Minor cmake grammar fix
...
It is redundant to have CMAKE_INSTALL_PREFIX in path definitions; drop them.
2012-12-18 09:11:57 +01:00
Didier Raboud
e062b74a3a
Install libCBot to a private directory
...
closes #90
- Make it configurable;
- Move stanzas above the src directory inclusion, otherwise the value
doesn't propagate.
2012-12-17 10:15:14 +01:00
Piotr Dziwinski
0305e0ba17
Restext rewrite to runtime initialized arrays
2012-10-17 23:16:19 +02:00
adiblol
70dae8796e
Fixed stupid coding mistake in CBotString.cpp
2012-10-07 00:09:50 +02:00
Michał Zieliński
b7667cef35
Added "make install" target.
2012-10-05 22:07:58 +02:00
adiblol
cb634db2ec
Fixed segfault when using empty strings with CBotString::operator+
2012-09-30 16:00:34 +02:00
Piotr Dziwinski
86109a8c1e
CBotVar SetVal() fix
2012-09-29 21:46:34 +02:00
Piotr Dziwinski
e7e8954384
MXE support and CMake files refactoring
...
- added support for cross-compiling with MXE (http://mxe.cc/ )
- refactored CMake files, adding some options and moving definitions
to more suitable places
2012-09-29 17:19:23 +02:00
erihel
37e7c73f43
* Removed some warnings
2012-09-22 11:48:41 +02:00
Zaba999
191fdc614e
changed paths for models and levels. Now it's possible to load level.
2012-09-20 22:58:00 +02:00
Zaba999
a397922e8d
warnings fight in progress.
2012-09-18 00:01:00 +02:00
Michał Konopacki
e154e654f1
Reduced amount of warnings in CBot library
...
Changed most of C-style casting to C++ casting
Commented unused variables
2012-08-13 01:45:35 +02:00