I've read the Game Programming Gems 6 and found the component system extremly cool. but there were only listings without a working example. so to spread the idea a little bit here is a working (vc6) example source code. to get the full idea read the article in the book...
the basic idea: in games it's easier to use "objects" which consist of "components" instead of inheritance. and every specific component-type (eg. render) can only exist one time in a object.
do whatever you want with the source...
cheers
questor
the basic idea: in games it's easier to use "objects" which consist of "components" instead of inheritance. and every specific component-type (eg. render) can only exist one time in a object.
do whatever you want with the source...
cheers
questor
The post was edited 1 time, last by questor/fused ().