Class LaserFactory

java.lang.Object
com.csse3200.game.entities.factories.LaserFactory

public class LaserFactory extends Object
A class full of static methods which construct different laser entity types
  • Method Details

    • createLaser

      public static Entity createLaser(float dir, com.badlogic.gdx.graphics.Color color, Component laserBehavior)
      Creates a new laser emitter entity which is rotated by dir degrees. The laser is able to damage players and also reflect off of colliders with the PhysicsLayer.LASER_REFLECTOR layer.
      Parameters:
      dir - direction for the initial laser beam to face in degrees
      Returns:
      the newly created laser emitter entity
    • createLaserEmitter

      public static Entity createLaserEmitter(float dir)
    • createLaserShower

      public static Entity createLaserShower(float dir)
      Creates a blue laser shower.