Questions tagged [component-based]

Component-based designs rely on separating the multiple logical attributes of business objects and game objects into small components dedicated only to specific tasks. Whereas game objects are usually modeled to reproduce the attributes and behavior of "real world" objects by aggregating them together and allowing specialized objects to inherit from general ones, component based design relies on composition rather than inheritance.

23 questions
1
vote
0 answers

Creating a library with a list of unknown template types

A while back, I began creating games and I ran into a style that I really like. It's called component based architecture. The tutorial is for Objective-C, not C++, but I included the link…
MPStoering
  • 184
  • 2
  • 12
0
votes
1 answer

Using a singleton in my app. Am i implementing it correctly?

So I have a class called app. It is just a class that controls all the other classes inside of it. Mid development we discussed to make this app class a singleton. This makes clear to other developers that there should only be one App. This sounds…
0
votes
1 answer

How to structure Redux for a highly de-coupled, plug-n-play complex component?

I'm pretty new to Redux and would like to use it my application but I'm stuck at architecture/design phase for the Redux part. Here are my requirements and my suppositions regarding the design. Application details: SPA with AngularJS. Other libs…
0
votes
1 answer

Component based game engine : How to manage relation between game object?

In Component based game engine, I have trouble when it come to relation between game objects / components. Where to store the relation , and how to delete them? To keep it simple, here is an example. A Gradius-clone game consists of 2 types of game…
javaLover
  • 6,347
  • 2
  • 22
  • 67
0
votes
0 answers

understand make dependencies while using make to build project c++

There is a legacy code which uses 'make' to build all C++ files. I am trying to decrease the number of files being included during build, that can create some space to add in some new code.(the new code is to set up serial communication). However,…
0
votes
1 answer

Can Spring Framework used to build modular componentized web applications?

When i think of Modular applications i think of mostly a component based architecture application (not necessary i know). JSF is designed to do Component Web applications. Spring's Web Framework (Spring Web MVC) is a request/response model - mostly…
SoftwareDeveloper
  • 1,094
  • 2
  • 15
  • 26
0
votes
1 answer

Data storage in game objects

I'm building a game with XNA at the moment, and I currently have my game object components set up like so: class Character : GameComponent { public int health, state; public float speed; } etc. Since making a menu system, I've played around with…
Elliot
  • 17
  • 1
  • 3
-1
votes
3 answers

Comparing types in C++

I'm working on a custom engine where I have 2 different transform classes, one for 2D and one for 3D. I'm using a #define to choose which transform class to use and using that definition instead of the classname in places where the logic should be…
1
2