A programming paradigm in which objects (entities) are composed out of components, and are operated upon by systems. Each entity is an ID that points to specific components.
Questions tagged [entity-system]
26 questions
0
votes
1 answer
How to avoid virtual functions in C when designing an Entity System
I want to design an entity system for my game using just C and a small subset of C++. Many people do this using inheritance, but I stumbled across tagged unions and learned that you can achieve a similar result this way, because virtual functions…

Gavriil
- 47
- 1
- 2
- 7
0
votes
1 answer
Entity component architecture : want to split big entity -> hard to refactor
In the first step of development, I design Car and AI as 1 entity.
It works nice (pseudo code):-
for(every entity that is "racing car"){
//^ know type by using flag
// or iterate special component (e.g. "RacingCarComponent")
Entity…

cppBeginner
- 1,114
- 9
- 27
0
votes
1 answer
Entity Component System - Components requiring each other
I have written an entity component system for my game (C++). I have then refactored my render system to work with Entities / RenderComponents rather than some virtual drawable interface. Their are some classes for which I don't think it makes too…

Adrian Albert Koch
- 351
- 1
- 14
0
votes
1 answer
Should I add a owner component on every entity that has parent?
Should I add a owner component on every entity that has parent? if yes, what is the right term for that component. Currently I am using AttachmentComponent that consist of owner Entity, and use it like in the below code.
AttachmentComponent…
user4822216
0
votes
1 answer
Java - How to read a custom map format
I am trying to create a custom map format for my own little 2D RPG, so my question is rather how do I manage reading and creating a custom map format properly and flexible. First off, I am writing my code in Java. The idea was to have a class called…

user263980
- 31
- 1
- 6
0
votes
3 answers
C++ template function causes circular dependancy
How would it be possible to solve a circular dependency caused by template functions?
For example, I have an Engine class defined that stores a list of Entities, and is responsible for creating entities and adding / removing components from…

sangwe11
- 123
- 6
0
votes
2 answers
Is a Component Entity System implemented in Erlang even possible?
I've learned a lot about Erlang the last couple of days and am familiar with component entity systems.
With the process centric approach of Erlang I would suggest that each entity would be an Erlang process instance. As for the CES (Component Entity…

Ronald Duck
- 323
- 1
- 11
0
votes
2 answers
c++ factory pattern component creator with singleton container
I'm implementing the factory pattern for component creation and want to implement a singleton container for all instances of each type created by the factory. Ideally this would be one vector for each type created in the factory.
This would be…

Allan Deutsch
- 75
- 7
0
votes
1 answer
Use Artemis ESF with JRuby
I am trying to use the Artemis entity system framework from JRuby. Here is the Java code that I am trying to convert to JRuby:
import com.artemis.Aspect;
import com.artemis.Component;
import com.artemis.Entity;
import com.artemis.World;
import…

uros calakovic
- 277
- 4
- 12
0
votes
1 answer
EntityProcessingSystem cannot be used with Type Arguments
I am using Artemis and trying to extend EntityProcessingSystem. However, it is telling me The non-generic type 'Artemis.System.EntityProcessingSystem' cannot be used with type arguments; however, it must be used with type…

Evorlor
- 7,263
- 17
- 70
- 141
0
votes
2 answers
Artemis Entity System Framework
I am new to Artemis Entity Systems framework, and I want to know whether there is a way to get all the entities that have a specific component or components in them? (There should be, but I cannot find.)
For example I want to find all entities that…

Narek
- 38,779
- 79
- 233
- 389