]> code.bitgloo.com Git - clyne/entityx.git/log
clyne/entityx.git
10 years agoImprove entity iteration performance by removing support for custom predicates.
Alec Thomas [Thu, 9 Oct 2014 23:28:04 +0000 (10:28 +1100)]
Improve entity iteration performance by removing support for custom predicates.

10 years agoUse a partitioned grid for collision detection.
Alec Thomas [Thu, 9 Oct 2014 22:38:08 +0000 (09:38 +1100)]
Use a partitioned grid for collision detection.

10 years agoDon't use deprecated strstream.
Alec Thomas [Thu, 9 Oct 2014 10:24:30 +0000 (21:24 +1100)]
Don't use deprecated strstream.

10 years agoAdd example.
Alec Thomas [Thu, 9 Oct 2014 10:14:21 +0000 (21:14 +1100)]
Add example.

10 years agoSuppress unused variable warning. Fixes #49.
Alec Thomas [Thu, 2 Oct 2014 04:25:44 +0000 (14:25 +1000)]
Suppress unused variable warning. Fixes #49.

10 years agoUpdate README for 1.0.0.
Alec Thomas [Mon, 29 Sep 2014 04:14:54 +0000 (14:14 +1000)]
Update README for 1.0.0.

10 years agoIn benchmark: only iterate once, not 10 times.
Alec Thomas [Wed, 17 Sep 2014 01:27:03 +0000 (11:27 +1000)]
In benchmark: only iterate once, not 10 times.

10 years agoDocument some projects using EntityX.
Alec Thomas [Tue, 16 Sep 2014 02:06:12 +0000 (12:06 +1000)]
Document some projects using EntityX.

11 years agoMake fail() static.
Alec Thomas [Wed, 13 Aug 2014 22:57:31 +0000 (08:57 +1000)]
Make fail() static.

11 years agoUse std::abort() if exceptions are disabled.
Alec Thomas [Wed, 13 Aug 2014 22:55:51 +0000 (08:55 +1000)]
Use std::abort() if exceptions are disabled.

Fixes #47.

11 years agoUse abort() if _HAS_EXCEPTIONS is not defined.
Alec Thomas [Wed, 13 Aug 2014 22:38:01 +0000 (08:38 +1000)]
Use abort() if _HAS_EXCEPTIONS is not defined.

11 years agoMerge pull request #46 from scrpi/master
Alec Thomas [Thu, 7 Aug 2014 21:56:55 +0000 (07:56 +1000)]
Merge pull request #46 from scrpi/master

Added operator< overload for Entity class. Allowing use of Entity obects...

11 years agoAdded operator< overload for Entity class. Allowing use of Entity obects in std:...
Ben Kelly [Thu, 7 Aug 2014 12:47:31 +0000 (22:47 +1000)]
Added operator< overload for Entity class. Allowing use of Entity obects in std::set and std::map. Added test code.

11 years agoMerge pull request #45 from isra17/master
Alec Thomas [Tue, 5 Aug 2014 03:57:58 +0000 (13:57 +1000)]
Merge pull request #45 from isra17/master

Fix components mask bitset operations

11 years agoUses bitmask function to set bit
Israël Hallé [Mon, 4 Aug 2014 20:03:32 +0000 (16:03 -0400)]
Uses bitmask function to set bit

11 years agoChanges 64 bits family to fast 32 bits
Israël Hallé [Mon, 4 Aug 2014 20:03:09 +0000 (16:03 -0400)]
Changes 64 bits family to fast 32 bits

11 years agoFix warnings(?) for implicit type conversions + headers in quick.h.
Alec Thomas [Wed, 30 Jul 2014 23:36:34 +0000 (09:36 +1000)]
Fix warnings(?) for implicit type conversions + headers in quick.h.

Fixes #43, #44.

11 years agoMerge pull request #41 from isra17/master
Alec Thomas [Thu, 10 Jul 2014 04:15:46 +0000 (14:15 +1000)]
Merge pull request #41 from isra17/master

Add /MDd flag for MSVC debug target

11 years agoAdd /MDd flag for MSVC debug target
Israël Hallé [Thu, 10 Jul 2014 04:05:18 +0000 (00:05 -0400)]
Add /MDd flag for MSVC debug target

11 years agoMerge pull request #40 from isra17/master
Alec Thomas [Thu, 10 Jul 2014 04:05:01 +0000 (14:05 +1000)]
Merge pull request #40 from isra17/master

Fix VS2013 compiler error in Entity_test.cc

11 years agoFix VS2013 compiler error in Entity_test.cc
Israël Hallé [Thu, 10 Jul 2014 03:09:24 +0000 (23:09 -0400)]
Fix VS2013 compiler error in Entity_test.cc

11 years agoMaybe fix the build?
Alec Thomas [Mon, 7 Jul 2014 04:09:32 +0000 (14:09 +1000)]
Maybe fix the build?

11 years agoAdd entities_for_debugging() entity iterator.
Alec Thomas [Mon, 7 Jul 2014 03:53:42 +0000 (13:53 +1000)]
Add entities_for_debugging() entity iterator.

11 years agoMerge @jarrettchisholm's change plus add some tests. Thanks!
Alec Thomas [Mon, 7 Jul 2014 02:53:19 +0000 (12:53 +1000)]
Merge @jarrettchisholm's change plus add some tests. Thanks!

Fixes #37 and #39.

11 years agoMerge pull request #36 from jeremyjh/android-pr
Alec Thomas [Wed, 2 Jul 2014 03:31:56 +0000 (13:31 +1000)]
Merge pull request #36 from jeremyjh/android-pr

add Android make file

11 years agoadd Android make file
Jeremy Huffman [Wed, 2 Jul 2014 03:09:50 +0000 (23:09 -0400)]
add Android make file

11 years agoMerge pull request #35 from x-w/master
Alec Thomas [Fri, 20 Jun 2014 11:39:52 +0000 (21:39 +1000)]
Merge pull request #35 from x-w/master

Add "Entity::component() const" which returns a handle of const component

11 years agoOverride Entity::component() to return a const ComponentHandle
Xiang Wei [Thu, 19 Jun 2014 12:00:39 +0000 (08:00 -0400)]
Override Entity::component() to return a const ComponentHandle

11 years agoCall systems.configure() in example.
Alec Thomas [Sun, 8 Jun 2014 03:53:22 +0000 (13:53 +1000)]
Call systems.configure() in example.

11 years agoAdd convenience `Component<T>::Handle` typedef.
Alec Thomas [Sat, 7 Jun 2014 16:58:04 +0000 (02:58 +1000)]
Add convenience `Component<T>::Handle` typedef.

11 years agoREADME updates.
Alec Thomas [Sat, 7 Jun 2014 04:34:50 +0000 (14:34 +1000)]
README updates.

Fixes #32. Fixes #33.

11 years agoOnly delete assigned components.
Alec Thomas [Thu, 15 May 2014 16:56:25 +0000 (12:56 -0400)]
Only delete assigned components.

Fixes #31.

11 years ago1.0.0alpha1 release.
Alec Thomas [Mon, 5 May 2014 16:59:28 +0000 (12:59 -0400)]
1.0.0alpha1 release.

11 years agoAdd -g to release builds.
Alec Thomas [Sat, 3 May 2014 23:58:37 +0000 (19:58 -0400)]
Add -g to release builds.

11 years agoVerify destroyed event count is correct.
Alec Thomas [Fri, 25 Apr 2014 18:21:27 +0000 (14:21 -0400)]
Verify destroyed event count is correct.

11 years agoDon't include entityx/Manager.h - it is no longer used.
Alec Thomas [Fri, 18 Apr 2014 15:17:41 +0000 (11:17 -0400)]
Don't include entityx/Manager.h - it is no longer used.

11 years agoDoc updates.
Alec Thomas [Wed, 2 Apr 2014 13:16:41 +0000 (09:16 -0400)]
Doc updates.

11 years agoUse vector rather than unordered_map for event dispatching.
Alec Thomas [Wed, 5 Mar 2014 08:04:40 +0000 (19:04 +1100)]
Use vector rather than unordered_map for event dispatching.

11 years agoWrap component access in a ComponentHandle.
Alec Thomas [Wed, 5 Mar 2014 06:17:20 +0000 (17:17 +1100)]
Wrap component access in a ComponentHandle.

11 years agoUse TEST_CASE_METHOD rather than SECTION.
Alec Thomas [Tue, 4 Mar 2014 02:26:30 +0000 (13:26 +1100)]
Use TEST_CASE_METHOD rather than SECTION.

11 years agoSwitch to Catch testing framework.
Alec Thomas [Tue, 4 Mar 2014 02:04:49 +0000 (13:04 +1100)]
Switch to Catch testing framework.

11 years agoUpdate README for 1.0.0.
Alec Thomas [Sun, 2 Mar 2014 12:08:56 +0000 (23:08 +1100)]
Update README for 1.0.0.

11 years agoUse raw pointers for components, allocated from pools.
Alec Thomas [Sun, 2 Mar 2014 11:49:41 +0000 (22:49 +1100)]
Use raw pointers for components, allocated from pools.

11 years agoRemoved Manager. Add EntityX class. Largely eradicate use of shared_ptr.
Alec Thomas [Sun, 2 Mar 2014 04:59:44 +0000 (15:59 +1100)]
Removed Manager. Add EntityX class. Largely eradicate use of shared_ptr.

11 years agoFix visibility issue with gcc.
Alec Thomas [Sun, 2 Mar 2014 01:58:57 +0000 (12:58 +1100)]
Fix visibility issue with gcc.

11 years agoIncrease cache coherency.
Alec Thomas [Sun, 2 Mar 2014 01:50:01 +0000 (12:50 +1100)]
Increase cache coherency.

Mainly achieved by allocating components in contiguous memory blocks.
This is a breaking change, thus the major version bump.

11 years agoFixed compile issues on Windows with Visual Studio 2013.
Jarrett Chisholm [Wed, 12 Feb 2014 01:17:46 +0000 (20:17 -0500)]
Fixed compile issues on Windows with Visual Studio 2013.

- Made compiler flags dependent on the compiler being used.
- Added check for clang to use the same compiler options as gnu g++

11 years agoMerge pull request #26 from hovatterz/pkg-config
Alec Thomas [Thu, 23 Jan 2014 05:33:41 +0000 (21:33 -0800)]
Merge pull request #26 from hovatterz/pkg-config

Add pkg-config source file

11 years agoAdd pkg-config source file
Zack Hovatter [Sun, 19 Jan 2014 23:40:58 +0000 (17:40 -0600)]
Add pkg-config source file

11 years agoMerge pull request #22 from scott-linder/master
Alec Thomas [Tue, 31 Dec 2013 04:19:40 +0000 (20:19 -0800)]
Merge pull request #22 from scott-linder/master

Added std::forward in order to respect move semantics in some methods.

11 years agoAdded std::forward in order to respect move semantics in some methods.
scott-linder [Tue, 31 Dec 2013 00:33:17 +0000 (19:33 -0500)]
Added std::forward in order to respect move semantics in some methods.

Previously, calls to the methods assign<C>(...), emit<E>(...), and add<S>(...)
would fail if constructor arguments relied upon move semantics.

11 years agoMerge pull request #21 from scott-linder/master
Alec Thomas [Wed, 25 Dec 2013 17:11:52 +0000 (09:11 -0800)]
Merge pull request #21 from scott-linder/master

Added entityx::make_ptr to mirror std::make_shared

11 years agoAdded entityx::make_ptr to mirror std::make_shared
scott-linder [Wed, 25 Dec 2013 03:42:03 +0000 (22:42 -0500)]
Added entityx::make_ptr to mirror std::make_shared

11 years agoMove Python support to https://github.com/alecthomas/entityx_python
Alec Thomas [Sat, 21 Dec 2013 01:57:02 +0000 (20:57 -0500)]
Move Python support to https://github.com/alecthomas/entityx_python

11 years agoEvent delivery to/from Python and C++.
Alec Thomas [Fri, 20 Dec 2013 05:24:01 +0000 (00:24 -0500)]
Event delivery to/from Python and C++.

11 years agoFix unpack and entities_with_components with > 2 args.
Alec Thomas [Wed, 18 Dec 2013 04:46:43 +0000 (23:46 -0500)]
Fix unpack and entities_with_components with > 2 args.

11 years agoAdd download instructions.
Alec Thomas [Mon, 2 Dec 2013 20:10:00 +0000 (15:10 -0500)]
Add download instructions.

11 years agoUpdate docs, add step(dt) to Manager.
Alec Thomas [Mon, 2 Dec 2013 19:55:20 +0000 (14:55 -0500)]
Update docs, add step(dt) to Manager.

Fixes #19.

11 years agoDon't cap at ms.
Alec Thomas [Fri, 29 Nov 2013 17:59:02 +0000 (12:59 -0500)]
Don't cap at ms.

11 years agoMerge no-boost into master.
Alec Thomas [Fri, 29 Nov 2013 17:47:51 +0000 (12:47 -0500)]
Merge no-boost into master.

This eradicates boost as a dependency for everything except the Python
integration, which may or may not work for now.

11 years agoMake benchmarks work.
Alec Thomas [Fri, 29 Nov 2013 17:47:35 +0000 (12:47 -0500)]
Make benchmarks work.

11 years agoMerge pull request #18 from dustinfreeman/master
Alec Thomas [Wed, 27 Nov 2013 18:08:12 +0000 (10:08 -0800)]
Merge pull request #18 from dustinfreeman/master

Fixed spelling in README.md

11 years agoFixed spelling in README.md
Dustin Freeman [Wed, 27 Nov 2013 16:56:26 +0000 (11:56 -0500)]
Fixed spelling in README.md

Depdendency -> Dependency

11 years agoMoved stdlib=libc++ test into CMakeLists.txt. Made further modifications to README.md
Antony Woods [Mon, 4 Nov 2013 09:09:28 +0000 (09:09 +0000)]
Moved stdlib=libc++ test into CMakeLists.txt. Made further modifications to README.md

11 years agoTidied up config.h.in to remove redundant guard - take two
Antony Woods [Mon, 4 Nov 2013 08:57:55 +0000 (08:57 +0000)]
Tidied up config.h.in to remove redundant guard - take two

11 years agoRevert "Tidied up config.h.in to remove redundant guard"
Antony Woods [Mon, 4 Nov 2013 08:53:42 +0000 (08:53 +0000)]
Revert "Tidied up config.h.in to remove redundant guard"

This reverts commit a5247cfd2a63ac4ef4820a61d43af0fb10f722ae.

11 years agoTidied up config.h.in to remove redundant guard
Antony Woods [Fri, 1 Nov 2013 08:20:46 +0000 (08:20 +0000)]
Tidied up config.h.in to remove redundant guard

11 years agoLine endings fix?
Antony Woods [Thu, 31 Oct 2013 09:01:02 +0000 (09:01 +0000)]
Line endings fix?

11 years agoNormalize line endings
Antony Woods [Wed, 30 Oct 2013 08:41:08 +0000 (08:41 +0000)]
Normalize line endings

11 years agoResolved README merge conflict
Antony Woods [Wed, 30 Oct 2013 08:38:58 +0000 (08:38 +0000)]
Resolved README merge conflict

11 years agoMerge pull request #1 from alecthomas/master
Antony [Wed, 30 Oct 2013 08:30:12 +0000 (01:30 -0700)]
Merge pull request #1 from alecthomas/master

Merge changes from upstream

11 years agoNormalize line endings
Alec Thomas [Wed, 30 Oct 2013 03:05:34 +0000 (23:05 -0400)]
Normalize line endings

11 years agoAdd .gitattributes for line endings.
Alec Thomas [Wed, 30 Oct 2013 02:54:18 +0000 (22:54 -0400)]
Add .gitattributes for line endings.

11 years agoTidying up and amending readme/changes
Antony Woods [Tue, 29 Oct 2013 18:25:31 +0000 (18:25 +0000)]
Tidying up and amending readme/changes

11 years agoRemoved boost namespace from tests so they compile
Antony Woods [Tue, 29 Oct 2013 08:40:31 +0000 (08:40 +0000)]
Removed boost namespace from tests so they compile

11 years agoFixed a compiler error with std::chrono::duration
Antony Woods [Tue, 29 Oct 2013 08:36:33 +0000 (08:36 +0000)]
Fixed a compiler error with std::chrono::duration

11 years agoFixed invalid header in python files. Now using chrono instead of boost timer. Remove...
Antony Woods [Wed, 16 Oct 2013 08:09:22 +0000 (09:09 +0100)]
Fixed invalid header in python files. Now using chrono instead of boost timer. Removed unnecessary ptr checks, as now shared ptr is mandatory. Updated Readme to reflect new changes. Updated travis file, just in case.

11 years agoFirst pass at replacing boost with c++11 features
Antony Woods [Tue, 15 Oct 2013 23:17:05 +0000 (00:17 +0100)]
First pass at replacing boost with c++11 features

11 years agoDependencies in README.
Alec Thomas [Mon, 14 Oct 2013 20:30:23 +0000 (16:30 -0400)]
Dependencies in README.

11 years agoInitial commit
Antony Woods [Mon, 14 Oct 2013 20:03:04 +0000 (21:03 +0100)]
Initial commit

11 years agoREADME formatting tweaks.
Alec Thomas [Mon, 14 Oct 2013 17:56:17 +0000 (13:56 -0400)]
README formatting tweaks.

11 years agoFix bug in EntityManager::get.
Alec Thomas [Mon, 14 Oct 2013 17:53:41 +0000 (13:53 -0400)]
Fix bug in EntityManager::get.

11 years agoAllow creation of Entity::Id from uint64_t.
Alec Thomas [Sat, 12 Oct 2013 17:07:53 +0000 (13:07 -0400)]
Allow creation of Entity::Id from uint64_t.

11 years agoDocument dependency helper.
Alec Thomas [Fri, 4 Oct 2013 14:48:13 +0000 (10:48 -0400)]
Document dependency helper.

11 years agoAdd `Dependency<C, D1, D2...>` System for automatic component
Alec Thomas [Fri, 4 Oct 2013 14:41:04 +0000 (10:41 -0400)]
Add `Dependency<C, D1, D2...>` System for automatic component
dependencies.

11 years agoUpdate README to match reality.
Alec Thomas [Wed, 2 Oct 2013 01:48:41 +0000 (21:48 -0400)]
Update README to match reality.

11 years agoSpeed up iterator creation a bit by avoiding some copies.
Alec Thomas [Thu, 5 Sep 2013 21:32:46 +0000 (17:32 -0400)]
Speed up iterator creation a bit by avoiding some copies.

11 years agoFix stupid iteration bug.
Alec Thomas [Thu, 5 Sep 2013 21:16:11 +0000 (17:16 -0400)]
Fix stupid iteration bug.

Iteration would terminate at ID size() rather than capacity(),
where size() is the number of allocated entities. Depending on where
deleted entities were, this would likely miss entities at the end of
the allocated vectors.

Fixes #10.

11 years agoAdd entityx/entityx.h
Alec Thomas [Thu, 5 Sep 2013 00:51:18 +0000 (20:51 -0400)]
Add entityx/entityx.h

11 years agoPerformance improvements + emitting events from Python.
Alec Thomas [Wed, 4 Sep 2013 23:36:31 +0000 (19:36 -0400)]
Performance improvements + emitting events from Python.

11 years agoAdded remove<C>() method for removal of components by type.
David Wicks [Mon, 2 Sep 2013 20:04:51 +0000 (16:04 -0400)]
Added remove<C>() method for removal of components by type.

Along with this, there is a ComponentRemovedEvent<T> that is
delivered whenever a component is removed from an entity.

12 years agoSpeed up iteration a bit.
Alec Thomas [Thu, 29 Aug 2013 20:14:19 +0000 (16:14 -0400)]
Speed up iteration a bit.

12 years agoSwitch from boost::signal to embedded Simple::Signal.
Alec Thomas [Thu, 22 Aug 2013 22:38:14 +0000 (18:38 -0400)]
Switch from boost::signal to embedded Simple::Signal.

12 years agoRevert "Switch to boost::signals2."
Alec Thomas [Thu, 22 Aug 2013 02:57:32 +0000 (22:57 -0400)]
Revert "Switch to boost::signals2."

Until I have the time to make the tests work.

This reverts commit be03c3a3d4e8824c3b909648b46910b4cdbc72e1.

12 years agoSwitch to boost::signals2.
Alec Thomas [Thu, 22 Aug 2013 00:34:10 +0000 (20:34 -0400)]
Switch to boost::signals2.

12 years agoUse README.md for Doxygen index.
Alec Thomas [Mon, 19 Aug 2013 04:28:35 +0000 (00:28 -0400)]
Use README.md for Doxygen index.

12 years agoFix build.
Alec Thomas [Mon, 19 Aug 2013 04:15:27 +0000 (00:15 -0400)]
Fix build.

12 years agoAdd Doxygen file.
Alec Thomas [Mon, 19 Aug 2013 04:01:01 +0000 (00:01 -0400)]
Add Doxygen file.

12 years agoDestroying an entity correctly invalidates all other references.
Alec Thomas [Sun, 18 Aug 2013 15:33:27 +0000 (11:33 -0400)]
Destroying an entity correctly invalidates all other references.

12 years agoClarify docs + dump test output on failure.
Alec Thomas [Sun, 18 Aug 2013 00:43:48 +0000 (20:43 -0400)]
Clarify docs + dump test output on failure.