Hi. Firstly, i like to say congratulations to Mike for a great book.
It is all a new way of thinking for me, so i'm just trying to get my head around a few of the concepts, and how to implement them.
1) Firstly, I'm a bit confused about what exactly inherits from CProcess and gets managed by the process manager. I know it is mentioned that in theory every object that needs to be updated can be a proccess... does this mean the physics system (to check for collisions etc), and all the other "subsystems" are entirley enherited from CProcess and managed by the process manager for the whole program?
2) I am also a bit confused by the event system. I think I get most of it, but I'm not sure which objects actually listen to the events.. as an example: there is a process on the process manager to move my player to position X, but before this process has completed its task, the player collides with another object. Obviously this move player process must be now altered, but what object receives the collision event (the moveplayer process? the gameview?), and kills/alters the moveplayer process?.
3) And one more q for now. It was my understanding that the event system will send out the events to the necessary objects, to be processed in the next cycle, but i guess this is incorrect, as in the above collision example, we would not want to progress to the next cycle until we'd sorted out the problem of the player being inside the collision object..
EDIT: 4) Ok I have so many questions... in regards to game views, in particular the human view. It is updated from the main loop every frame, outside of the game logic and process manager, correct? This update includes receiving events, and to quote the book, "sending commands back to the game logic such as 'request throw grenade'. It would be up to the game logic to determine whether this wasa valid request" - so the gameview triggers an event to through a grenade? What object recieves this and actually adds a process to through the grenade?
I think I understand most of the individual concepts but am having a hard time tying them all together!
Any help on any of these questions and related subjects would be gratefully accepted!
Thanks,
Sam
It is all a new way of thinking for me, so i'm just trying to get my head around a few of the concepts, and how to implement them.
1) Firstly, I'm a bit confused about what exactly inherits from CProcess and gets managed by the process manager. I know it is mentioned that in theory every object that needs to be updated can be a proccess... does this mean the physics system (to check for collisions etc), and all the other "subsystems" are entirley enherited from CProcess and managed by the process manager for the whole program?
2) I am also a bit confused by the event system. I think I get most of it, but I'm not sure which objects actually listen to the events.. as an example: there is a process on the process manager to move my player to position X, but before this process has completed its task, the player collides with another object. Obviously this move player process must be now altered, but what object receives the collision event (the moveplayer process? the gameview?), and kills/alters the moveplayer process?.
3) And one more q for now. It was my understanding that the event system will send out the events to the necessary objects, to be processed in the next cycle, but i guess this is incorrect, as in the above collision example, we would not want to progress to the next cycle until we'd sorted out the problem of the player being inside the collision object..
EDIT: 4) Ok I have so many questions... in regards to game views, in particular the human view. It is updated from the main loop every frame, outside of the game logic and process manager, correct? This update includes receiving events, and to quote the book, "sending commands back to the game logic such as 'request throw grenade'. It would be up to the game logic to determine whether this wasa valid request" - so the gameview triggers an event to through a grenade? What object recieves this and actually adds a process to through the grenade?
I think I understand most of the individual concepts but am having a hard time tying them all together!
Any help on any of these questions and related subjects would be gratefully accepted!
Thanks,
Sam
The post was edited 1 time, last by mrsnature ().