]> code.bitgloo.com Git - clyne/entityx.git/log
clyne/entityx.git
10 years agoMerge pull request #103 from Nodmgatall/patch-1
Alec Thomas [Sun, 14 Jun 2015 00:30:25 +0000 (10:30 +1000)]
Merge pull request #103 from Nodmgatall/patch-1

Make Receiver inheritance public instead of implicitly private

10 years agoMake Receiver inheritance public instead of implicitly private
Nodmgatall [Sat, 13 Jun 2015 19:51:38 +0000 (21:51 +0200)]
Make Receiver inheritance public instead of implicitly private

Otherwise you get an error when trying to run the example.

/home/lemling/Dokumente/Proggen/BaconGameJam/bgj09/entityx/entityx/Event.h: In instantiation of ‘void entityx::EventManager::subscribe(Receiver&) [with E = PlayerInstrucionEvent; Receiver = MovementSystem]’:
/home/lemling/Dokumente/Proggen/BaconGameJam/bgj09/src/system_movement.hpp:17:58:   required from here
/home/lemling/Dokumente/Proggen/BaconGameJam/bgj09/entityx/entityx/Event.h:130:26: error: ‘entityx::BaseReceiver’ is an inaccessible base of ‘MovementSystem’
     BaseReceiver &base = receiver;

10 years agoFix code example in README.md
Sven-Hendrik Haase [Sat, 13 Jun 2015 00:37:25 +0000 (02:37 +0200)]
Fix code example in README.md

10 years agoDon't require CMake 3.0.
Alec Thomas [Sat, 25 Apr 2015 09:13:43 +0000 (19:13 +1000)]
Don't require CMake 3.0.

10 years agoBump to 1.1.2.
Alec Thomas [Sat, 25 Apr 2015 03:04:29 +0000 (13:04 +1000)]
Bump to 1.1.2.

10 years agoUpdate example with a vertex array-based particle system.
Alec Thomas [Fri, 24 Apr 2015 10:43:12 +0000 (20:43 +1000)]
Update example with a vertex array-based particle system.

10 years agoFix a bunch of constness issues (fixes #95).
Alec Thomas [Fri, 24 Apr 2015 01:47:33 +0000 (11:47 +1000)]
Fix a bunch of constness issues (fixes #95).

- Use SFINAE to prevent non-const access to component<C>().
- Correctly de-const component types before accessing
  Component<C>::family(). Avoids accidentally assigning new family IDs.
- ComponentHandle should handle const propagation correctly now.
- ComponentHandle.manager_ should now be `const EntityManager` where
  appropriate.

10 years agoAdd AppVeyor master status badge.
Alec Thomas [Thu, 23 Apr 2015 04:27:01 +0000 (14:27 +1000)]
Add AppVeyor master status badge.

10 years agoMerge pull request #94 from jpleau/cmake_soname
Alec Thomas [Sun, 19 Apr 2015 23:37:13 +0000 (09:37 +1000)]
Merge pull request #94 from jpleau/cmake_soname

update versions in CMakeLists.txt

10 years agoupdate versions in CMakeLists.txt
Jason Pleau [Sun, 19 Apr 2015 16:08:38 +0000 (12:08 -0400)]
update versions in CMakeLists.txt

10 years agoTest that components aren't reused on deleted entities.
Alec Thomas [Mon, 30 Mar 2015 00:53:41 +0000 (11:53 +1100)]
Test that components aren't reused on deleted entities.

See #92.

10 years agoTest for multiple event subscriptions.
Alec Thomas [Thu, 19 Mar 2015 03:15:09 +0000 (14:15 +1100)]
Test for multiple event subscriptions.

10 years agoMerge pull request #89 from tahsmith/master
Alec Thomas [Wed, 4 Mar 2015 01:33:42 +0000 (12:33 +1100)]
Merge pull request #89 from tahsmith/master

Remove user defined constructors for Entity

10 years agoRemove user defined constructors for Entity that are equivalent to the compiler gener...
tahsmith [Wed, 4 Mar 2015 01:07:09 +0000 (12:07 +1100)]
Remove user defined constructors for Entity that are equivalent to the compiler generated ones.

10 years agoMore examples projects.
Alec Thomas [Mon, 16 Feb 2015 03:17:15 +0000 (14:17 +1100)]
More examples projects.

10 years agoMore README udpates.
Alec Thomas [Mon, 9 Feb 2015 00:59:48 +0000 (11:59 +1100)]
More README udpates.

10 years agoUpdate README+example for inheritance-free change.
Alec Thomas [Mon, 9 Feb 2015 00:57:23 +0000 (11:57 +1100)]
Update README+example for inheritance-free change.

10 years agoEvents no longer need to be inherited from Event, they can be any class.
Alec Thomas [Mon, 9 Feb 2015 00:31:43 +0000 (11:31 +1100)]
Events no longer need to be inherited from Event, they can be any class.

See #85.

10 years agoComponents no longer need to be inherited from Component<>.
Alec Thomas [Mon, 9 Feb 2015 00:30:14 +0000 (11:30 +1100)]
Components no longer need to be inherited from Component<>.

See #85.

10 years agoMerge pull request #84 from Gronis/master
Alec Thomas [Thu, 5 Feb 2015 14:26:05 +0000 (01:26 +1100)]
Merge pull request #84 from Gronis/master

Added unsubscribe feature to EventManager.

10 years agoAdded unsubscribe feature to EventManager. Also added tests in Event_test.cc that...
robin [Thu, 5 Feb 2015 00:06:08 +0000 (01:06 +0100)]
Added unsubscribe feature to EventManager. Also added tests in Event_test.cc that checks that it's working correctly.

10 years agoMerge pull request #79 from sansumbrella/component_replace
Alec Thomas [Thu, 15 Jan 2015 00:26:09 +0000 (11:26 +1100)]
Merge pull request #79 from sansumbrella/component_replace

Entity::replace<Component> method.

10 years agoEntity::replace<Component> method.
David Wicks [Wed, 14 Jan 2015 17:52:27 +0000 (12:52 -0500)]
Entity::replace<Component> method.

Avoid the client-side song and dance around assignment in cases where
a component of the same type may already be assigned to the entity.

10 years agoUse a vector for the free list. std::list is mind bogglingly slow.
Alec Thomas [Tue, 30 Dec 2014 23:49:14 +0000 (10:49 +1100)]
Use a vector for the free list. std::list is mind bogglingly slow.

10 years agoCMake fix for AppleClang.
Alec Thomas [Wed, 24 Dec 2014 09:07:50 +0000 (20:07 +1100)]
CMake fix for AppleClang.

10 years agoMerge pull request #76 from excaliburHisSheath/master
Alec Thomas [Sun, 21 Dec 2014 00:39:56 +0000 (11:39 +1100)]
Merge pull request #76 from excaliburHisSheath/master

Add SystemManager::update_all() Method

10 years agoRename SystemManager::update_all() and Add Documentation
David LeGare [Sat, 20 Dec 2014 16:25:47 +0000 (10:25 -0600)]
Rename SystemManager::update_all() and Add Documentation

- Renamed SystemManager::updateAll() to SystemManager::update_all() to
make it consistent with the existing naming convention.
- Added documentation for SystemManager::update_all().

10 years agoAdd Non-Templated SystemManager::update() Method
David LeGare [Sat, 20 Dec 2014 03:52:47 +0000 (21:52 -0600)]
Add Non-Templated SystemManager::update() Method

- Added a non-templated updateAll() method to the SystemManager that
updates all systems in the manager.
- Adds a test for updateAll().

10 years agoMerge pull request #73 from MarioLiebisch/cmake-additions
Alec Thomas [Tue, 16 Dec 2014 02:53:25 +0000 (13:53 +1100)]
Merge pull request #73 from MarioLiebisch/cmake-additions

Added CMake Find_Package script and debug suffix

10 years agoAdded CMake Find_Package script and debug suffix
Mario Liebisch [Mon, 15 Dec 2014 20:35:51 +0000 (21:35 +0100)]
Added CMake Find_Package script and debug suffix

* This allows easy inclusion of EntityX in CMake projects using
`Find_Package(EntityX)`.
* Also debug versions now use the `-d` suffix, no longer overwriting
release builds (e.g. `entityx-d.lib` rather than `entityx.lib`).

10 years agoMerge pull request #72 from eco/patch-1
Alec Thomas [Sun, 14 Dec 2014 23:00:48 +0000 (10:00 +1100)]
Merge pull request #72 from eco/patch-1

Don't use dereference operator in events example

10 years agoDon't use dereference operator in events example
Brad Anderson [Sun, 14 Dec 2014 09:25:08 +0000 (02:25 -0700)]
Don't use dereference operator in events example

10 years agoMerge pull request #69 from jpleau/examples
Alec Thomas [Sun, 7 Dec 2014 22:53:44 +0000 (09:53 +1100)]
Merge pull request #69 from jpleau/examples

example: typo in compilation command, replace arial with a free font

10 years agoMerge pull request #70 from jpleau/libdir
Alec Thomas [Sun, 7 Dec 2014 22:53:10 +0000 (09:53 +1100)]
Merge pull request #70 from jpleau/libdir

add CMAKE_INSTALL_LIBDIR

10 years agoadd CMAKE_INSTALL_LIBDIR
Jason Pleau [Sun, 7 Dec 2014 19:30:15 +0000 (14:30 -0500)]
add CMAKE_INSTALL_LIBDIR

Keeps the default to 'lib', while allowing to use it like so:

-DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu

10 years agoexample: fix compilation command
Jason Pleau [Sun, 7 Dec 2014 16:56:43 +0000 (11:56 -0500)]
example: fix compilation command

10 years agoexample: replace arial with a free font
Jason Pleau [Sun, 7 Dec 2014 16:55:39 +0000 (11:55 -0500)]
example: replace arial with a free font

Arial is a proprietary font and cannot be included in another package in
distributions like Debian. Replaced it with Liberation.

10 years agoAdd SONAME. Fixes #65.
Alec Thomas [Mon, 1 Dec 2014 22:54:03 +0000 (08:54 +1000)]
Add SONAME. Fixes #65.

10 years agoInclude cmath in example. Fixes #66.
Alec Thomas [Mon, 1 Dec 2014 11:23:00 +0000 (21:23 +1000)]
Include cmath in example. Fixes #66.

10 years agoHack for VS internal error. Fixes #23 (again).
Alec Thomas [Fri, 31 Oct 2014 05:24:40 +0000 (16:24 +1100)]
Hack for VS internal error. Fixes #23 (again).

10 years agoDeltaTime -> TimeDelta
Alec Thomas [Mon, 27 Oct 2014 01:57:11 +0000 (12:57 +1100)]
DeltaTime -> TimeDelta

10 years agoFix RPATH issue on OSX.
Alec Thomas [Mon, 27 Oct 2014 00:27:19 +0000 (11:27 +1100)]
Fix RPATH issue on OSX.

10 years agoMerge branch 'master' of github.com:alecthomas/entityx
Alec Thomas [Mon, 27 Oct 2014 00:20:05 +0000 (11:20 +1100)]
Merge branch 'master' of github.com:alecthomas/entityx

10 years agoFix example.
Alec Thomas [Mon, 27 Oct 2014 00:17:20 +0000 (11:17 +1100)]
Fix example.

10 years agoMerge pull request #61 from tivek/remove_c_std_libraries
Alec Thomas [Sun, 26 Oct 2014 23:28:33 +0000 (10:28 +1100)]
Merge pull request #61 from tivek/remove_c_std_libraries

Replace stdint.h with cstdint

10 years agoConfigurable delta time type via -DENTITYX_DT_TYPE=<type>.
Alec Thomas [Sun, 26 Oct 2014 23:26:30 +0000 (10:26 +1100)]
Configurable delta time type via -DENTITYX_DT_TYPE=<type>.

Fixes #60.

10 years agofix typo
tivek [Sat, 25 Oct 2014 19:51:30 +0000 (21:51 +0200)]
fix typo

10 years agoDo not assume integer types in global namespace
Tomislav Ivek [Sat, 25 Oct 2014 19:38:27 +0000 (21:38 +0200)]
Do not assume integer types in global namespace

10 years agoInclude cstdint instead of stdint.h
Tomislav Ivek [Sat, 25 Oct 2014 19:04:33 +0000 (21:04 +0200)]
Include cstdint instead of stdint.h

10 years agoDebug -> All, now that it is faster.
Alec Thomas [Thu, 23 Oct 2014 03:33:50 +0000 (14:33 +1100)]
Debug -> All, now that it is faster.

10 years agoSort free list before iterating over all entities.
Alec Thomas [Thu, 23 Oct 2014 03:33:17 +0000 (14:33 +1100)]
Sort free list before iterating over all entities.

This should make iteration over all entities much faster.

10 years agoAdd test for component destructor called when entity is destroyed.
Alec Thomas [Tue, 21 Oct 2014 03:04:51 +0000 (14:04 +1100)]
Add test for component destructor called when entity is destroyed.

10 years agoAdd test case for component destruction.
Alec Thomas [Mon, 20 Oct 2014 23:46:38 +0000 (10:46 +1100)]
Add test case for component destruction.

10 years agoActually call component destructors on reset().
Alec Thomas [Mon, 20 Oct 2014 23:40:44 +0000 (10:40 +1100)]
Actually call component destructors on reset().

10 years agoMerge pull request #55 from kumar8600/patch-3
Alec Thomas [Tue, 14 Oct 2014 00:51:17 +0000 (11:51 +1100)]
Merge pull request #55 from kumar8600/patch-3

Correct project name definition at CMakeLists.txt

10 years agoCorrect project name definition at CMakeLists.txt
kumar8600 [Mon, 13 Oct 2014 08:37:14 +0000 (17:37 +0900)]
Correct project name definition at CMakeLists.txt

Match with before #7b6427d14aca84c9603f8767e6b9b097a8be9424

10 years agoMerge pull request #54 from kumar8600/kumar8600/size_t-is-not-int
Alec Thomas [Mon, 13 Oct 2014 08:17:06 +0000 (19:17 +1100)]
Merge pull request #54 from kumar8600/kumar8600/size_t-is-not-int

Return size_t at methods of Event and Pool

10 years agoReturn std::size_t at Event::connected_signals
kumar8600 [Mon, 13 Oct 2014 07:55:41 +0000 (16:55 +0900)]
Return std::size_t at Event::connected_signals

And size_t -> std::size_t

10 years agoGet definition of std::size_t and make sizet_t more int
kumar8600 [Sun, 12 Oct 2014 12:51:58 +0000 (21:51 +0900)]
Get definition of std::size_t and make sizet_t more int

10 years agoMake return size_t at functions Event and Pool
kumar8600 [Sun, 12 Oct 2014 12:10:03 +0000 (21:10 +0900)]
Make return size_t at functions Event and Pool

10 years agoMerge pull request #53 from kumar8600/patch-2
Alec Thomas [Sun, 12 Oct 2014 09:58:38 +0000 (20:58 +1100)]
Merge pull request #53 from kumar8600/patch-2

Make true default ENTITY_BUILD_SHARED

10 years agoMerge pull request #52 from kumar8600/patch-1
Alec Thomas [Sun, 12 Oct 2014 09:57:40 +0000 (20:57 +1100)]
Merge pull request #52 from kumar8600/patch-1

Define project name on CMakeLists.txt

10 years agoMake true default ENTITY_BUILD_SHARED
kumar8600 [Sun, 12 Oct 2014 06:00:00 +0000 (15:00 +0900)]
Make true default ENTITY_BUILD_SHARED

10 years agoDefine project name on CMakeLists.txt
kumar8600 [Sat, 11 Oct 2014 16:17:15 +0000 (01:17 +0900)]
Define project name on CMakeLists.txt

10 years agoBig performance improvement in iteration.
Alec Thomas [Fri, 10 Oct 2014 04:58:53 +0000 (15:58 +1100)]
Big performance improvement in iteration.

No longer perform a vtable lookup and function call to unpack
components. Unpacking is now completely templatised and expanded at
compile time.

10 years agoAdd benchmark for unpacking two components.
Alec Thomas [Fri, 10 Oct 2014 04:49:11 +0000 (15:49 +1100)]
Add benchmark for unpacking two components.

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.