Class LaserDetectorFactory
java.lang.Object
com.csse3200.game.entities.factories.LaserDetectorFactory
This is just a class of static methods used to assemble new laser detector
entities. They're able to detect when a laser is hitting them and then trigger
an event when the state is changed.
-
Method Summary
Modifier and TypeMethodDescriptionstatic EntityCreates a new laser detector entity facing upright (unrotated)static EntitycreateLaserDetector(float dir) Creates a new laser detector entity with a rotation ofdir.
-
Method Details
-
createLaserDetector
Creates a new laser detector entity facing upright (unrotated)- Returns:
- the newly created laser detector entity
-
createLaserDetector
Creates a new laser detector entity with a rotation ofdir.- Parameters:
dir- the rotation in degrees- Returns:
- the newly created laser detector entity
-