Package com.deco2800.game.components.npc
Class EnemyProjectileComponent
java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.components.npc.EnemyProjectileComponent
- 
Field Summary
 - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidcreate()Create enemy projectile componentvoidremoveProjectile(com.badlogic.gdx.physics.box2d.Fixture me, com.badlogic.gdx.physics.box2d.Fixture other) Remove projectile from mapvoidsetProjectileDirection(com.badlogic.gdx.math.Vector2 projectileDirection) Sets the projectile's directionvoidupdate()Sets the projectile to move in a certain direction at a certain speed and updates the projectile to keep moving at that speed.Methods inherited from class com.deco2800.game.components.Component
dispose, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate 
- 
Constructor Details
- 
EnemyProjectileComponent
public EnemyProjectileComponent() 
 - 
 - 
Method Details
- 
create
public void create()Create enemy projectile component - 
update
public void update()Sets the projectile to move in a certain direction at a certain speed and updates the projectile to keep moving at that speed. - 
setProjectileDirection
public void setProjectileDirection(com.badlogic.gdx.math.Vector2 projectileDirection) Sets the projectile's direction- Parameters:
 projectileDirection- the vector direction of the projectile's movement
 - 
removeProjectile
public void removeProjectile(com.badlogic.gdx.physics.box2d.Fixture me, com.badlogic.gdx.physics.box2d.Fixture other) Remove projectile from map 
 -