Droog71
d64d78acfc
Fix for issue #1221 ( #1230 )
...
* Fix for issue #1221
* Removed object array and implemented GetObjectName method in it's place.
* Fixed indentation issue.
* Fixed white space at end of lines 1571, 1572.
2020-07-19 10:55:55 +02:00
tomangelo
37e4ed8029
Updated license headers ( #1317 )
...
* Updated headers
* Updated more headers
2020-07-07 10:19:36 +02:00
Emxx52
0102e45855
Merge pull request #1049 from colobot/dev-cbot-factory
...
Rework new functions so they follow established syntax rules
2020-07-05 17:26:04 +02:00
tomangelo2
dece19fbec
Style fix
2020-07-05 12:58:45 +02:00
tomangelo2
a2df003b7e
Fix radar function parameter type detection, fixes #1298
2020-07-05 12:58:45 +02:00
Droog71
f449d9c800
Fix for issue #842
2020-07-05 11:04:21 +02:00
Fiftytwo
55b46942cb
Remove unnecessary whitespaces
2020-06-16 21:02:52 +02:00
Fiftytwo
5c0cfba8ae
Merge branch 'dev' into dev-cbot-factory
2020-06-16 20:07:03 +02:00
Fiftytwo
7f9efea0a2
Remove unnecessary whitespaces
2020-05-15 20:29:48 +02:00
Fiftytwo
0b9673029d
Merge dev into dev-builders and resolve conflicts
2020-05-15 15:06:37 +02:00
Fiftytwo
e5d994b9e2
Merge branch 'dev' of https://github.com/colobot/colobot into dev
2020-04-07 14:46:43 +02:00
Vladislav Kuzkokov
e3f53dc203
Put pitch and roll in [-180,180) range.
...
Reasonable values lie close to either side of 0.
2019-01-06 07:09:57 +01:00
Fiftytwo
723c552783
Add Heavy and Amphibious trainer bots
2018-12-23 07:04:06 +01:00
Fiftytwo
5b2b632de3
Add TargetBot research; make it fully operational
2018-07-13 00:03:20 +02:00
krzys-h
319d8e6854
Fix delete() not returning sometimes, closes #1067
2018-05-09 23:12:26 +02:00
Fiftytwo
caf58c8ab8
Merge branch 'dev' of https://github.com/colobot/colobot into dev
2018-05-07 21:48:48 +02:00
krzys_h
8b86a1f222
Merge pull request #1142 from AbigailBuccaneer/Wmissing-declarations
...
Compile with -Wmissing-declarations
2018-04-24 14:12:43 +02:00
krzys_h
6289ea91b1
Merge pull request #1140 from AbigailBuccaneer/Wsuggest-override
...
Compile with -Wsuggest-override under GCC
2018-04-24 14:12:31 +02:00
AbigailBuccaneer
ea64edaa0b
Compile with -Wmissing-declarations
...
-Wmissing-declarations enforces that every function (except for static
functions) must be declared separately before it's defined. This
essentially enforces that every function must be either static, or
declared in a header elsewhere.
This helps the optimizer, as it can do a better job of inlining if it
knows that a function won't be used outside of a given file. It also
helps -Wunused-function (which is enabled by -Wall) find more unused
functions.
Note that Clang spells this option -Wmissing-prototypes, which
confusingly is the name of a related but different warning option under
GCC.
2018-04-21 16:49:27 +01:00
krzys-h
e964d3e48c
Fix colobot-lint warnings
2018-04-20 02:21:12 +02:00
krzys-h
1c2bdc9cab
Update license headers
2018-04-20 02:08:50 +02:00
AbigailBuccaneer
6978c28ee0
Compile with -Wsuggest-override under GCC
...
Clang by default compiles with -Winconsistent-missing-override, which
warns when a class declares virtual functions that override those in the
base class, and some but not all of them are explicitly declared
`override`.
GCC doesn't support this option, but has a stronger version,
-Wsuggest-override. In combination with -Werror, this means that any
virtual function that overrides another *must* be explicitly declared as
`override`.
This commit enables -Wsuggest-override where available. This means that
GCC users can't break the Clang build with inconsistent overrides (see
#1113 and #1114 ) and consequently that any build that passes the pull
request CI build on Jenkins won't break because of inconsistent
overrides.
2018-04-19 19:58:44 +01:00
Fiftytwo
0fddd79501
Add PracticeBot alias detection in search() and detect()
2017-12-21 14:44:43 +01:00
Fiftytwo
ca0ff013d4
Update Trainer bots
2017-12-21 01:49:56 +01:00
Fiftytwo
94aa76e7a1
Add auto object detection for takeoff, destroy, camerafocus
2017-11-30 20:41:44 +01:00
Fiftytwo
614dc5e591
Builder research
2017-11-23 00:11:29 +01:00
Fiftytwo
0b36bdf37f
Quick fix for 9a33551
since I broke sth
2017-11-17 12:00:49 +01:00
Fiftytwo
9a33551a03
Reverted factory() to its original design; reworked syntax of other object.functions() accordingly; improved compatibility with CeeBot4 SCHOOL
2017-11-17 11:32:50 +01:00
Fiftytwo
a024866fd3
Builder bots base implementation
2017-11-16 18:43:45 +01:00
krzys-h
a95f736cbe
Fix delete(this.id), closes #925
2017-06-03 20:05:54 +02:00
melex750
30210d0de7
Add searchall() and improve search() function
2017-05-25 02:01:42 -04:00
krzys-h
2d7911f155
Fix delete() in CBot not destroying PowerCells properly
2017-05-23 20:19:47 +02:00
krzys-h
108551c199
Fix @tomangelo2's code style
...
see 47a8f70f0f
2017-05-22 11:11:44 +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
tomangelo2
47a8f70f0f
Display warning if there is not enough energy to shoot
...
Fix issue #949
2017-05-20 20:41:30 +02:00
tomangelo2
588bf30b94
Fixed some functions doesn't returning 0 if no error
...
Fix issue #917
2017-03-02 23:01:55 +01:00
krzys-h
1b074bd94d
Fix crash on loading saves with produce()d objects ( #765 )
...
Thanks @melex750!
2016-11-11 13:38:43 +01:00
krzys-h
a96835e35f
Change CBot file log messages
...
Open mode is logged now. Additionally fixed incorrect file path in log when deleting files.
2016-09-30 17:08:37 +02:00
MatiRg
d107605007
Add file append mode in CBot ( #838 )
2016-09-30 17:03:13 +02:00
krzys-h
4c8da2c503
LevelController improvements; minor EndMissionTake cleanup
...
* using LevelController script in the level doesn't forcefully disable EndMissionTake and AudioChange anymore
* cleaned up some code related to processing EndMissionTake commands
2016-04-08 20:56:09 +02:00
krzys-h
977607a934
Updated license headers
2016-02-13 14:11:30 +01:00
krzys-h
6bdebcf8e4
Fix delete() CBot command
2016-01-30 17:42:35 +01:00
krzys-h
048534e89d
Fixed some errors reported by colobot-lint
2016-01-23 20:58:03 +01:00
krzys-h
a70381e1c8
Refactored CBotVarClass instance list to std::set
2015-12-31 16:54:13 +01:00
krzys-h
07a4d6a16b
CBot namespace
2015-12-26 14:29:10 +01:00
krzys-h
2519825104
CBotVar::ProtectionLevel enum
2015-12-21 23:07:40 +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
Grunaka
ece0666954
Create new file CBot.h. Included only useful interfaces.
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