Jump to content

  • Log In with Google      Sign In   
  • Create Account


Component Or Entity ?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 __UFNHGGI_H__   Members   -  Reputation: 305

Like
0Likes
Like

Posted 29 April 2013 - 11:50 PM

in the name of god && coding rolleyes.gif
Hi Programmers cool.png
Wich Is Beter ?  ComponentBase (like unity3d) or EntityBase (like cryengine) unsure.png
why? When? dry.png

My previous choice was the Component.  mellow.png
But now, I chose the Entity. tongue.png
What is your opinion ?angry.png

sory if my english is not good laugh.png
thanks angry.png



Sponsor:

#2 frob   Moderators   -  Reputation: 16170

Like
8Likes
Like

Posted 30 April 2013 - 12:43 AM

Both are essentially the same thing.

 

They represent a game object, and can use composition to add functionality as needed.

 

Both are reasonably well implemented and are good answers to the problem they are trying to solve.

 

Neither is strictly better or worse than the other.  They are very similar solutions to the same problem, and both work quite well.


Check out my personal indie blog at bryanwagstaff.com.

#3 Alpha_ProgDes   Crossbones+   -  Reputation: 4506

Like
0Likes
Like

Posted 30 April 2013 - 01:58 AM

Both are essentially the same thing.

 

They represent a game object, and can use composition to add functionality as needed.

 

Both are reasonably well implemented and are good answers to the problem they are trying to solve.

 

Neither is strictly better or worse than the other.  They are very similar solutions to the same problem, and both work quite well.

 

Well said.


Beginner in Game Development? Read here.
 
Super Mario Bros clone tutorial written in XNA 4.0 [MonoGame, ANX, and MonoXNA] by Scott Haley
 
If you have found any of the posts helpful, please show your appreciation by clicking the up arrow on those posts Posted Image
 
Spoiler

#4 tisdadd   Members   -  Reputation: 294

Like
0Likes
Like

Posted 01 May 2013 - 02:25 PM

Both are essentially the same thing.

 

They represent a game object, and can use composition to add functionality as needed.

 

Both are reasonably well implemented and are good answers to the problem they are trying to solve.

 

Neither is strictly better or worse than the other.  They are very similar solutions to the same problem, and both work quite well.

 

Well said.

And that is why, when I first looked into component based, I was somewhat confused as to the difference between the two until I actually tried it.

 

Which is better would depend upon the situation... from my understanding the component based architectures work quickly and are great for adding in something new without having to re code a lot... but if you are doing your object orientated programming to its fullest, it will be the same sort of situation.



#5 FLeBlanc   Crossbones+   -  Reputation: 3061

Like
0Likes
Like

Posted 01 May 2013 - 02:43 PM

That's a lot of smileys.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS