Commit Graph

37 Commits

Author SHA1 Message Date
Florian Rival a4c372d945 Convert PointX/PointY argument to a string 2019-01-28 23:16:20 +00:00
Florian Rival a8559bfbbc Add clang-format to format (C++) source files automatically (#491)
* Update all CMakeLists of extensions to use clang-format
* Run clang-format on all Extensions
* Update GDCore CMakeLists.txt to add clang-format
* Run clang-format on GDCore files
* Update GDJS and GDCpp CMakeLists.txt to add clang-format
* Run clang-format on GDCpp and GDJS files
2018-05-09 15:57:38 -07:00
Florian Rival ceb8b4dde1 Merge serialization methods for instructions and add serialization methods to InstructionsList 2017-08-20 17:22:23 +02:00
Florian Rival 7b8e1c70ba Fix EventsListSerialization::UnserializeEventsFrom not deleting existing events 2017-01-22 17:22:31 +01:00
Victor Levasseur d20b5a0fbb gd::Object and RuntimeObject are now cloned in unique_ptr 2016-11-15 08:33:56 +01:00
Florian Rival e444e80493 Update copyrights year 2016-01-14 19:46:56 +01:00
Florian Rival 63cb853d72 Change file organization (Events, Extensions + more folders) 2015-11-01 11:26:40 +01:00
Florian Rival b24e37ff01 Refactoring to use gd::String::FindAndReplace 2015-08-24 19:24:38 +02:00
Victor Levasseur 9552cb75b8 Merge remote-tracking branch 'upstream/feature/behavior-renaming' into replace-uint-with-size_t 2015-08-19 19:13:51 +02:00
Victor Levasseur cc6810e3f6 Replace unsigned int with std::size_t where it's possible 2015-08-18 18:43:39 +02:00
Florian Rival 510cb4e7c0 Fix file not renamed and compatibility with GD3.x projects 2015-08-18 18:16:27 +02:00
Florian Rival 428e72914d [WIP] Rename Automatism to Behavior 2015-08-17 23:52:59 +02:00
victorlevasseur c98e97e60a Merge remote-tracking branch 'upstream/master' into utf8-gdstring
Conflicts:
	.travis.yml
	Core/GDCore/BuiltinExtensions/SpriteExtension/Dialogs/SpriteObjectEditor.cpp
	Core/GDCore/Events/Builtin/ForEachEvent.h
	Core/GDCore/Events/Event.cpp
	Core/GDCore/Events/Event.h
	Core/GDCore/Events/EventMetadata.cpp
	Core/GDCore/Events/EventMetadata.h
	Core/GDCore/Events/ExpressionMetadata.h
	Core/GDCore/Events/Instruction.h
	Core/GDCore/Events/InstructionMetadata.h
	Core/GDCore/IDE/Dialogs/EditLayerDialog.cpp
	Core/GDCore/PlatformDefinition/Object.cpp
	Core/GDCore/PlatformDefinition/PlatformExtension.cpp
	Core/GDCore/PlatformDefinition/PlatformExtension.h
	Extensions/Function/Extension.cpp
	Extensions/TextObject/TextObject.h
	Extensions/TimedEvent/Extension.cpp
	GDCpp/GDCpp/BuiltinExtensions/CommonInstructionsExtension.cpp
	GDCpp/GDCpp/BuiltinExtensions/KeyboardTools.h
	GDCpp/GDCpp/BuiltinExtensions/MouseTools.h
	GDCpp/GDCpp/BuiltinExtensions/SceneExtension.cpp
	GDCpp/GDCpp/InputManager.cpp
	GDCpp/GDCpp/RuntimeSpriteObject.cpp
	GDCpp/GDCpp/RuntimeSpriteObject.h
	GDJS/GDJS/BuiltinExtensions/BaseObjectExtension.cpp
	GDJS/GDJS/BuiltinExtensions/CommonInstructionsExtension.cpp
	GDJS/GDJS/BuiltinExtensions/SceneExtension.cpp
	GDJS/GDJS/BuiltinExtensions/VariablesExtension.cpp
	GDJS/GDJS/Exporter.cpp
	GDJS/GDJS/Exporter.h
	IDE/Dialogs/ObjectsEditor.cpp
	IDE/Preferences.cpp
2015-07-06 15:16:59 +02:00
Victor Levasseur 0a1542ba73 Replace all std::string by gd::String in GDCore
Add some other methods to gd::String (insert, ...)
2015-07-04 23:58:06 +02:00
Florian Rival 5896d6d327 Add BaseEvent getter/setter for folded member. Fixes for emscripten bindings 2015-05-24 15:01:59 +12:00
Florian Rival cb0acf7e6c Remove some CppCheck warnings 2015-05-05 22:10:51 +12:00
Florian Rival cebad7cd62 Revert "Revert "Store instructions as shared pointers instead of as values""
This reverts commit 755807b075.
2015-05-05 21:27:15 +12:00
Florian Rival 755807b075 Revert "Store instructions as shared pointers instead of as values" 2015-05-05 00:08:31 +12:00
Victor Levasseur 91692c4d29 Replace std::vector<gd::Instruction> by a custom class managing an array of std::shared_ptr<gd::Instruction> 2015-05-02 11:04:55 +02:00
Florian Rival 2317368415 Merge branch 'remove-boost' of https://github.com/victorlevasseur/GD into c++11
Conflicts:
	GDCpp/GDCpp/ObjInstancesHolder.cpp
2015-01-25 20:12:14 +01:00
Florian Rival 64e6860718 Version bump.
Updated copyrights.
2015-01-22 21:22:01 +01:00
victorlevasseur ae1f6d61b3 Remove boost dependency (boost::to_upper still remaining) 2015-01-18 21:09:45 +01:00
Florian Rival 40a82c61ea Switched from LGPL and zlib/png licenses to MIT License. 2014-11-30 16:59:51 +01:00
Florian Rival 7d3ada265c Replaced "Game Develop" by "GDevelop" 2014-09-24 16:25:13 +02:00
Florian Rival f6216da3ed Work in progress for tests.
Events Clone method now return a raw pointer.
2014-08-10 22:24:06 +02:00
Florian Rival 8844642ae0 Updated copyrights.
Added doxygen files.
Cleaned some files.
2014-06-26 00:20:36 +02:00
Florian Rival 0bff141691 Started converting LoadFromXml and SaveToXml to the new serialization classes.
Fixed strange bug where abs was returning int instead of float.
2014-04-28 23:32:53 +02:00
Florian Rival c9f8c37aa6 Started excluding parts of code from emscripten build. 2014-04-16 17:20:01 +02:00
Florian Rival 830e1dbb02 All events are now managed using gd::EventsList. 2014-04-10 10:55:29 +02:00
Florian Rival 830b533c6d Updated GDCore which was not up-to-date.
Binaries are now produced in a directory named with the build type and the os short name.
Added all files that are not binaries.
2014-04-01 00:19:58 +02:00
Florian e35df56900 Added support for structure variables and new way of handling variables in instructions.
TODO: Support for structure variables in ChooseVariableDialog.

git-svn-id: svn://localhost@1172 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-08-27 16:22:56 +00:00
Florian 15950cde32 Fixes for compilation on Linux.
git-svn-id: svn://localhost@1123 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-07-02 21:21:35 +00:00
Florian f9c4d9c435 Fixed sub conditions badly adapted when opening a GD2.x game.
git-svn-id: svn://localhost@1043 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-17 13:04:26 +00:00
Florian bee9eaaee9 Adapted code generation to handle the requirements of a code generation made without creating temporaries.
Adapted LayoutEditorCanvas and Object to handle objects with an origin which is not (0;0).

git-svn-id: svn://localhost@996 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-05-19 22:18:41 +00:00
Florian 731728c749 Old MapForObjectsOfParameter* and PtrToObjectOfParameter parameters type replaced by objectList* and objectPtr parameters type -> No need for useless parameters.
git-svn-id: svn://localhost@991 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-05-12 20:41:43 +00:00
Florian 82b94ee975 Inverted order for relationalOperator and operator parameters and their associated expression parameters.
Added update functions for games created with GD 2.x

git-svn-id: svn://localhost@988 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-05-11 18:03:51 +00:00
Florian 95c8dfaf62 Merged CoreWithImplementation ( i.e: Game Develop 3 ) branch with trunk.
git-svn-id: svn://localhost@972 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-05-06 20:18:03 +00:00