Commit Graph

152 Commits (a4f14650c6a6b1070f5d155b14daab33d43c525b)

Author SHA1 Message Date
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
Michał Konopacki a9186d1960 Changed GivAttrName() to GetAttrName() 2012-08-11 20:59:35 +02:00
Michał Konopacki 7b03a6a2ac CBot console interpreter
Based on program found in sources
2012-08-09 22:13:10 +02:00
Michał Konopacki ef7e297efe CBotString.cpp Bug resolve 2012-08-09 22:05:42 +02:00
Piotr Dziwinski bc24b9f9e5 Whitespace fix 2012-08-08 22:35:17 +02:00
Michał Konopacki a760e8a749 Cleanups 2012-08-08 02:23:38 +02:00
Michał Konopacki 0919796df7 Transation of comments complete 2012-08-08 02:01:06 +02:00
Michał Konopacki 0844a0f7bd Further CBot translations 2012-08-07 15:46:04 +02:00
Michał Konopacki a1c83c7d0a CBot library comments further translations 2012-08-07 12:46:19 +02:00
Michał Konopacki bf3f9e1860 Commentary translation 2012-08-03 00:50:25 +02:00
Michał Konopacki d00a283519 Comments translation 2012-08-02 19:41:13 +02:00
Piotr Dziwinski 6b846aa629 Compile fixes
Fixed some compiling issues
2012-07-26 00:18:02 +02:00
Zaba999 26f9149947 Further translations and doxygen comments. 2012-07-20 23:13:02 +02:00
Zaba999 1910219518 Dependency on WINAPI completely removed. 2012-07-10 22:58:52 +02:00
Zaba999 dbd62c96aa Fixed code compilation without fpermissive flag.
Removed Winapi, but now library don't work - work in progress.
Some translations.
2012-07-04 22:14:28 +02:00
Zaba999 fd6147bea0 translations plus small fixes 2012-07-02 21:41:24 +02:00
Piotr Dziwinski 1b83929487 Pulled changes from master branch 2012-06-28 22:54:53 +02:00
Piotr Dziwinski 330972d96b Removed MSVC project files and binary files 2012-04-17 00:52:46 +02:00
Programerus 0c2073a80b Fixed graphics bug on MSVC 2010 and MinGW. 2012-04-16 23:27:10 +02:00
Piotr Dziwinski 45b75ee37b Adding new MinGW branch 2012-04-15 01:02:51 +02:00
Piotr Dziwinski 011d86ed66 Pulled changes from test mingw branch
* include fixes
* syntax fixes for MinGW
* fixed encoding of restext.cpp
* temporary fix for MinGW in joystick.cpp

Successfully compiles under MinGW :)
2012-04-15 00:50:13 +02:00
Programerus b2589d2f6a Unneeded files deleted. 2012-04-11 23:16:24 +02:00
Krzysztof H f7d892cf4e Last coding fix ;) 2012-03-19 12:44:39 +01:00
Krzysztof H 5649419a46 FIX: "If not, see ." was replaced with: "If not, see http://www.gnu.org/licenses/." 2012-03-11 20:49:33 +01:00