Class DamageMappingSystem

java.lang.Object
com.csse3200.game.physics.attacking_system.DamageMappingSystem

public class DamageMappingSystem extends Object
the damage mapping system handles damage interactions between entities. It listens to collisionStart event and applies the damage logic.
  • Constructor Details

    • DamageMappingSystem

      public DamageMappingSystem(Entity entity)
      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 collision
      fixtureB - the second fixture in the collision