]> code.bitgloo.com Git - clyne/entityx.git/log
clyne/entityx.git
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.

12 years agoAdd changelog, clean up docs a bit.
Alec Thomas [Sat, 17 Aug 2013 22:45:40 +0000 (18:45 -0400)]
Add changelog, clean up docs a bit.

12 years agoAdd Python based scripting system (still experimental).
Alec Thomas [Sat, 17 Aug 2013 03:53:44 +0000 (23:53 -0400)]
Add Python based scripting system (still experimental).

The build system has also been revamped considerably, with the ability
to select between std::shared_ptr and boost::shared_ptr, as well as
other improvements.

12 years agoUpdate documentation. Fixes #8.
Alec Thomas [Tue, 4 Jun 2013 16:25:28 +0000 (12:25 -0400)]
Update documentation. Fixes #8.

12 years agoAll Manager classes are now managed by smart pointers.
Alec Thomas [Mon, 1 Apr 2013 15:51:29 +0000 (11:51 -0400)]
All Manager classes are now managed by smart pointers.

12 years agoAgh. .gitignore!
Alec Thomas [Wed, 3 Apr 2013 00:05:53 +0000 (20:05 -0400)]
Agh. .gitignore!

12 years agoRemove Components*, moved to tags/ in a previous change.
Alec Thomas [Tue, 2 Apr 2013 23:58:14 +0000 (19:58 -0400)]
Remove Components*, moved to tags/ in a previous change.

12 years agoAllow shared_ptr implementation to be selected.
Alec Thomas [Mon, 1 Apr 2013 15:51:29 +0000 (11:51 -0400)]
Allow shared_ptr implementation to be selected.

Fixes #6.

12 years agoAdd support for Travis-CI.
Alec Thomas [Tue, 2 Apr 2013 04:19:30 +0000 (00:19 -0400)]
Add support for Travis-CI.

Also ditched glog.

12 years agoInclude gtest (as per gtest recommendations).
Alec Thomas [Tue, 2 Apr 2013 03:41:51 +0000 (23:41 -0400)]
Include gtest (as per gtest recommendations).

See https://groups.google.com/forum/?fromgroups=#!topic/googletestframework/Zo7_HOv1MJ0

12 years agoFix README.
Alec Thomas [Sat, 30 Mar 2013 14:04:14 +0000 (10:04 -0400)]
Fix README.

Fixes #7.

12 years agoRemove unused flag that broke clang 3.x.
Alec Thomas [Sun, 24 Mar 2013 17:56:01 +0000 (13:56 -0400)]
Remove unused flag that broke clang 3.x.

Fixes #5.

12 years agoMerge pull request #4 from larspensjo/gcc-static
Alec Thomas [Wed, 20 Mar 2013 14:44:31 +0000 (07:44 -0700)]
Merge pull request #4 from larspensjo/gcc-static

gcc 4.7.2 doesn't allow static keyword in member function definition.

12 years agogcc 4.7.2 doesn't allow static keyword in member function definition.
Lars Pensjö [Wed, 20 Mar 2013 06:11:27 +0000 (07:11 +0100)]
gcc 4.7.2 doesn't allow static keyword in member function definition.

12 years agoMake Component<T>::family() support > 64 components.
Alec Thomas [Fri, 15 Mar 2013 03:26:47 +0000 (23:26 -0400)]
Make Component<T>::family() support > 64 components.

12 years agoTypedef bitset out.
Alec Thomas [Fri, 15 Mar 2013 03:08:54 +0000 (23:08 -0400)]
Typedef bitset out.

12 years agoUse std::bitset, allowing for an arbitrary number of components.
Alec Thomas [Tue, 12 Mar 2013 04:05:29 +0000 (00:05 -0400)]
Use std::bitset, allowing for an arbitrary number of components.

12 years agoImprove documentation.
Alec Thomas [Tue, 12 Mar 2013 03:05:54 +0000 (23:05 -0400)]
Improve documentation.

12 years agoAdd some benchmarks.
Alec Thomas [Tue, 12 Mar 2013 02:03:14 +0000 (22:03 -0400)]
Add some benchmarks.

12 years agoUse std::list for free list.
Alec Thomas [Mon, 11 Mar 2013 06:53:40 +0000 (02:53 -0400)]
Use std::list for free list.

12 years agoSome breaking changes to Entity management.
Alec Thomas [Mon, 11 Mar 2013 05:38:06 +0000 (01:38 -0400)]
Some breaking changes to Entity management.

- Entity will no longer implicitly cast to Entity::Id. This is safer
  and cleaner.
- Use Entity::destroy(). This will destroy the entity *and* invalidate
  the handle.
- Removed the exists() method, as it was largely meaningless anyway.
  Listen to EntityDestroyedEvent instead.
- Exposed Entity::manager() and removed manager attribute from events.

12 years agoREADME formatting.
Alec Thomas [Sun, 10 Mar 2013 17:29:43 +0000 (13:29 -0400)]
README formatting.

12 years agoTwo bugfixes in Entity.
Lars Pensjö [Sun, 10 Mar 2013 01:00:06 +0000 (02:00 +0100)]
Two bugfixes in Entity.

Fix Entity::operator! and initialize Entity::id_ to invalid value by
default.

Add test to verify operator! and uninitialized Entity.
Suppress warnings about unused variables.

12 years agoAllow Entity objects to be copied around.
Alec Thomas [Sat, 9 Mar 2013 17:35:09 +0000 (12:35 -0500)]
Allow Entity objects to be copied around.

Note that this doesn't use shared_ptr, but this is little different
from the previous implementation using a reference.

12 years agoRemove unused variable. Update README.
Alec Thomas [Sat, 2 Mar 2013 18:30:55 +0000 (13:30 -0500)]
Remove unused variable. Update README.

12 years agoMerge pull request #2 from larspensjo/ReuseEntity
Alec Thomas [Sat, 2 Mar 2013 17:58:29 +0000 (09:58 -0800)]
Merge pull request #2 from larspensjo/ReuseEntity

Bug in allocation of freed entities.

12 years agoAdded comment.
Lars Pensjö [Sat, 2 Mar 2013 14:33:11 +0000 (15:33 +0100)]
Added comment.

12 years agoEntity allocation error fixed.
Lars Pensjö [Sat, 2 Mar 2013 14:26:31 +0000 (15:26 +0100)]
Entity allocation error fixed.
Need to save the id before erasing.

12 years agoAdd test for reusing an Entity.
Lars Pensjö [Sat, 2 Mar 2013 14:23:10 +0000 (15:23 +0100)]
Add test for reusing an Entity.
This will lead to a crash.

12 years agoMerge pull request #1 from larspensjo/linux-gcc
Alec Thomas [Wed, 27 Feb 2013 21:14:53 +0000 (13:14 -0800)]
Merge pull request #1 from larspensjo/linux-gcc

Enable testing for Linux GCC.

12 years agoMinor readme updates.
Lars Pensjö [Wed, 27 Feb 2013 09:43:58 +0000 (10:43 +0100)]
Minor readme updates.

Add link to define POD.
Refer to entity instead of component.

12 years agoEnable testing for Linux with gcc.
Lars Pensjö [Wed, 27 Feb 2013 06:38:47 +0000 (07:38 +0100)]
Enable testing for Linux with gcc.
Resolve namespace std clash with boost.
struct NullDeleter can't be local.
Remove surplus ';'.

12 years agoUpdate cmake conf for testing.
Lars Pensjö [Wed, 27 Feb 2013 06:10:03 +0000 (07:10 +0100)]
Update cmake conf for testing.
Suppress error from signed comparison in gtest.h (-Wno-error=sign-compare).
Suppress error from unused variables (-Wno-error=unused-but-set-variable).
Add cmake flag BUILD_TESTING to the cached variables.
When building for testing, the include path to GTest shall be added.

12 years agoMake testing optional.
Alec Thomas [Sun, 6 Jan 2013 21:57:44 +0000 (16:57 -0500)]
Make testing optional.

12 years agoAdd Entity::exists() and EntityManager::get().
Alec Thomas [Sat, 27 Oct 2012 13:16:29 +0000 (09:16 -0400)]
Add Entity::exists() and EntityManager::get().

12 years agoAdd Entity class helper.
Alec Thomas [Wed, 24 Oct 2012 23:54:30 +0000 (19:54 -0400)]
Add Entity class helper.

This largely supplants the use of entity IDs.

12 years agoChange namespace entity -> entityx.
Alec Thomas [Wed, 24 Oct 2012 22:27:51 +0000 (18:27 -0400)]
Change namespace entity -> entityx.

12 years agoInclude updated.
Alec Thomas [Wed, 24 Oct 2012 21:28:25 +0000 (17:28 -0400)]
Include updated.

12 years agoName shared library entityx (rather than ..._shared).
Alec Thomas [Wed, 24 Oct 2012 21:24:11 +0000 (17:24 -0400)]
Name shared library entityx (rather than ..._shared).

12 years agoAdd C++ GitHub highlighting (hopefully).
Alec Thomas [Wed, 24 Oct 2012 21:19:42 +0000 (17:19 -0400)]
Add C++ GitHub highlighting (hopefully).

12 years agoAdd COPYING.
Alec Thomas [Wed, 24 Oct 2012 21:10:55 +0000 (17:10 -0400)]
Add COPYING.

12 years agoREADME updates.
Alec Thomas [Wed, 24 Oct 2012 21:07:08 +0000 (17:07 -0400)]
README updates.

12 years agoFix unpacking bug (segfault from lambda).
Alec Thomas [Wed, 24 Oct 2012 20:14:48 +0000 (16:14 -0400)]
Fix unpacking bug (segfault from lambda).

12 years agoAllow System's to be added pre-created to the SystemManager.
Alec Thomas [Mon, 22 Oct 2012 20:02:08 +0000 (16:02 -0400)]
Allow System's to be added pre-created to the SystemManager.

12 years agoConvert remaining bare pointers to shared_ptr.
Alec Thomas [Mon, 22 Oct 2012 18:16:43 +0000 (14:16 -0400)]
Convert remaining bare pointers to shared_ptr.

12 years agoConvert EntityManager::unpack() to use boost::shared_ptr.
Alec Thomas [Sun, 21 Oct 2012 01:05:51 +0000 (21:05 -0400)]
Convert EntityManager::unpack() to use boost::shared_ptr.

12 years agoImplemented unified entity iteration and component unpacking.
Alec Thomas [Sun, 21 Oct 2012 00:25:04 +0000 (20:25 -0400)]
Implemented unified entity iteration and component unpacking.

Continued working on docs.

12 years agoMore README updates.
Alec Thomas [Sat, 20 Oct 2012 15:17:28 +0000 (11:17 -0400)]
More README updates.

12 years agoMore install cleanup.
Alec Thomas [Fri, 19 Oct 2012 19:07:17 +0000 (15:07 -0400)]
More install cleanup.

12 years agoA bunch of minor build fixes. Started README.
Alec Thomas [Fri, 19 Oct 2012 18:48:55 +0000 (14:48 -0400)]
A bunch of minor build fixes. Started README.

12 years agoAdd C++11 feature checking to cmake.
Alec Thomas [Thu, 18 Oct 2012 17:21:06 +0000 (13:21 -0400)]
Add C++11 feature checking to cmake.

12 years agoMore attempts to get cmake build working.
Alec Thomas [Thu, 18 Oct 2012 16:54:12 +0000 (12:54 -0400)]
More attempts to get cmake build working.

12 years agoInitial import.
Alec Thomas [Fri, 21 Sep 2012 01:24:08 +0000 (21:24 -0400)]
Initial import.