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
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
Fiftytwo
d0e29d4875
Add trainer=1 BotFactory
2018-07-12 19:55:31 +02:00
melex750
a918fcabb4
Fix save/load NewScript programs for factory bots
...
Fixes #797
2018-04-30 13:43:03 -04: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
1c2bdc9cab
Update license headers
2018-04-20 02:08:50 +02:00
Fiftytwo
5f8b7a8149
Update BotFactory interface
2017-11-25 12:30:16 +01:00
Fiftytwo
a024866fd3
Builder bots base implementation
2017-11-16 18:43:45 +01:00
krzys-h
bb35585194
Fix object.factory() code type detection, closes #938
2017-06-03 21:43:10 +02:00
krzys-h
46aa6fc907
Some CRobotMain cleanup
...
* improved documentation
* renamed cheat variables to include the word "cheat" to make it clearer what they do
* removed some useless members
2016-12-27 23:38:57 +01:00
krzys-h
b6cda6cd4c
Add error when object is busy ( #871 )
2016-12-27 13:36:46 +01:00
krzys-h
977607a934
Updated license headers
2016-02-13 14:11: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
krzys-h
6711154762
Fixed produce() and NewScript not marking programs as loaded from level files ( closes #613 ); refactored NewScript to std::vector and std::string
2015-08-29 16: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
krzys-h
d5a468df46
Fixed regex in checking object.factory parameter
2015-08-17 19:30:27 +02:00
krzys-h
0eaf0d6f65
Split Programmable and ProgramStorage
2015-08-15 21:29:08 +02:00
krzys-h
9a15db1bea
Split global.h
2015-08-15 14:02:07 +02:00
krzys-h
ff957afefc
Moved files not directly related to CObject into src/level/ directory
2015-08-13 11:47:32 +02:00
krzys-h
e937db94c8
Moved GetPhysics() and GetMotion() to CMovableObject; moved trace drawing to CTraceDrawingObject
2015-08-13 10:49:45 +02:00
krzys-h
5d52214737
CFlyingObject; CJetFlyingObject
2015-08-12 19:09:35 +02:00
krzys-h
60797f72d3
Removed some old, unused code
2015-08-12 17:25:41 +02:00
krzys-h
f7d2f501bb
Moved common interface implementations to separate classes
...
Additionaly, merged all "inappropariate bot" errors into one and renamed ERR_GENERIC -> ERR_UNKNOWN
2015-08-12 16:54:44 +02:00
krzys-h
abb272600e
Merged CBrain into CProgrammableObject
2015-08-10 18:16:00 +02:00
krzys-h
dc85aa2138
Moved all UI controls to a subdirectory
2015-08-06 13:25:24 +02:00
krzys-h
45d6091a74
Fixed program from object.factory() being kept in BotFactory for every next manual operation
2015-08-03 20:33:45 +02:00
Piotr Dziwinski
11b0398c03
Include refactoring
...
* reordered includes according to correct style
* removed some unnecessary includes
2015-08-02 17:49:07 +02:00
Piotr Dziwinski
a5ff361bcc
Replace std::regex with boost::regex
...
std::regex doesn't work in older GCC version (#532 )
2015-07-25 09:13:17 +02:00
krzys-h
d5d8c0b29f
Removed the need for progfunc() in object.factory()
...
Changes to object.factory():
* The second argument will be automatically interpreted as public function name, file name or program code
* The program starts earlier (when the robot is ready, not when the doors open)
* Refactored to std::string
2015-07-22 16:16:16 +02:00
krzys-h
083f216529
Team object recoloring ( #514 )
2015-07-22 12:45:50 +02:00
Piotr Dziwinski
b3b6435039
Use MakeUnique with level parser classes
2015-07-17 20:38:21 +02:00
Piotr Dziwinski
d5da68d59a
Refactor old Get/SetAngle/Zoom -> Get/SetPartRotation/Scale
2015-07-14 21:35:43 +02:00
krzys-h
79c131394d
Separate DoneResearch for teams
2015-07-13 18:13:28 +02:00
krzys-h
3479c51bb9
Refactored EnableBuild, EnableResearch and DoneResearch
...
* Moved from global variables to CRobotMain members
* Added functions for accessing the values
* Cleaned up some code related to building objects, BotFactory, ResearchCenter and AutoLab
2015-07-13 17:38:19 +02:00
Piotr Dziwinski
e72936c240
Clean up more functions from COldObjectInterface
2015-07-12 20:05:12 +02:00
Piotr Dziwinski
16883fcdc4
Make CAuto classes use COldObject
2015-07-12 14:01:07 +02:00
Piotr Dziwinski
9a7c1961a4
GetPostion(), GetRotation() and GetScale() in CObject interface
...
Also replace old calls like GetPosition(0) to GetPosition()
2015-07-12 11:05:50 +02:00
Piotr Dziwinski
5d30de0d09
CProgrammableObject interface
2015-07-10 20:46:33 +02:00
Piotr Dziwinski
93479af188
CTransportableObject interface
2015-07-10 19:51:49 +02:00
krzys-h
26619e3f88
Removed old level parser functions (cmdtoken.cpp)
2015-07-10 11:51:59 +02:00
Piotr Dziwinski
b0ac2f8326
Refactor CObject interface related to crash spheres
2015-07-10 09:38:53 +02:00
Piotr Dziwinski
f6bc8f94bf
Rename fret/truck to cargo/transporter
2015-06-29 23:11:02 +02:00
krzys-h
78e09c757d
Basic support for teams and code battle missions
2015-06-26 22:07:55 +02:00
Piotr Dziwinski
02ffdcfe23
Refactor level parser code
...
* replace manual memory management with std::unique_ptr
* remove unnecessary dynamic allocations
* make coding style consistent
2015-06-21 20:59:23 +02:00
Piotr Dziwinski
304542afe2
Some syntax sugar for iterating through all objects
2015-06-21 16:22:09 +02:00
Piotr Dziwinski
0c9a9bce98
Proper CObject lifetime management
...
CObjectManager is now the only class responsible for storing CObjects
2015-06-21 15:13:55 +02:00
Piotr Dziwinski
fed67e6640
Rename objman.h/cpp -> object_manger.h/cpp
2015-06-20 20:02:40 +02:00