12-29-2013, 01:32 PM
(This post was last modified: 12-29-2013, 02:16 PM by SamJBarney.)
So I'm having a bit of trouble deciding how to implement what exactly each component covers. Here's my thinking right now:
This is just a short list of the things on my mind right now. I stopped being able to think coherently about 5 minutes ago.
- cMovementComponent
- Stores information about each movement type, such as jumping/walking/running speed. Also does movement along the path as called by the movement behaviors.
- Should it contain the position, rotation, etc. of the mob, or should we leave that in the cEntity class?
- Stores information about each movement type, such as jumping/walking/running speed. Also does movement along the path as called by the movement behaviors.
- cAttackComponent
- Should this handle OnTakeDamage, or should cAIComponent do that?
- Should this handle OnTakeDamage, or should cAIComponent do that?
- cModelComponent
- For mobs with inventory, should the inventory be a part of cAIComponent, or this one?
- For mobs with inventory, should the inventory be a part of cAIComponent, or this one?
- cEnvironmentComponent
- How should we handle this one? I'm not quite sure how to implement this.
- Should we provide as part of the base class the ability to add blocks that are considered breathable?
- How should we handle this one? I'm not quite sure how to implement this.
This is just a short list of the things on my mind right now. I stopped being able to think coherently about 5 minutes ago.