Class DamageMappingSystem
java.lang.Object
com.csse3200.game.physics.attacking_system.DamageMappingSystem
the damage mapping system handles damage interactions between entities. It listens to
collisionStart event and applies the damage logic.
-
Constructor Summary
ConstructorsConstructorDescriptionDamageMappingSystem
(Entity entity) Creates a new damage mapping system for the specified entity. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onCollisionStart
(com.badlogic.gdx.physics.box2d.Fixture fixtureA, com.badlogic.gdx.physics.box2d.Fixture fixtureB) Handles collision start events and applies damage logic.
-
Constructor Details
-
DamageMappingSystem
Creates a new damage mapping system for the specified entity.- Parameters:
entity
- the entity to attach the damage system to
-
-
Method Details
-
onCollisionStart
public void onCollisionStart(com.badlogic.gdx.physics.box2d.Fixture fixtureA, com.badlogic.gdx.physics.box2d.Fixture fixtureB) Handles collision start events and applies damage logic.- Parameters:
fixtureA
- the first fixture in the collisionfixtureB
- the second fixture in the collision
-