Works with the help of two classes: CollsionComponent and CollisionController
CollsionComponentCollisionController
Responsibility: when some collision happens it handles this event.
It receives damage if it’s a collision of a character and is destroyed if it’s an arrow.
CollisionController handles this type of behavior.
Place of creation: BattleController