Class HomingMissileSprayProjectileController
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.Weapons.WeaponControllerComponent
com.csse3200.game.components.Weapons.SpecWeapon.ProjectileController
com.csse3200.game.components.Weapons.SpecWeapon.HomingProjectileController
com.csse3200.game.components.Weapons.SpecWeapon.HomingMissileSprayProjectileController
-
Field Summary
Fields inherited from class com.csse3200.game.components.Weapons.WeaponControllerComponent
attackNum, config, currentRotation, player, remainingDuration -
Constructor Summary
ConstructorsConstructorDescriptionHomingMissileSprayProjectileController(WeaponConfig config, float attackDirection, Entity player, int attackNum) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidSet initial rotation (defaults to attack direction)protected voidmove()Update entity location every tickMethods inherited from class com.csse3200.game.components.Weapons.SpecWeapon.HomingProjectileController
initial_animation, reanimate, rotateMethods inherited from class com.csse3200.game.components.Weapons.SpecWeapon.ProjectileController
create, initial_positionMethods inherited from class com.csse3200.game.components.Weapons.WeaponControllerComponent
add_animations, positionInDirection, updateMethods inherited from class com.csse3200.game.components.Component
dispose, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate
-
Constructor Details
-
HomingMissileSprayProjectileController
public HomingMissileSprayProjectileController(WeaponConfig config, float attackDirection, Entity player, int attackNum)
-
-
Method Details
-
initial_rotation
protected void initial_rotation()Description copied from class:WeaponControllerComponentSet initial rotation (defaults to attack direction)- Overrides:
initial_rotationin classProjectileController
-
move
protected void move()Description copied from class:WeaponControllerComponentUpdate entity location every tick- Overrides:
movein classProjectileController
-