Class PlayerSkillProjectileComponent
java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.components.player.PlayerSkillProjectileComponent
- 
Field Summary
 - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidcreate()Called when the entity is created and registered.voidsetProjectileDirection(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
- 
PlayerSkillProjectileComponent
public PlayerSkillProjectileComponent() 
 - 
 - 
Method Details
- 
create
public void create()Description copied from class:ComponentCalled when the entity is created and registered. Initial logic such as calls to GetComponent should be made here, not in the constructor which is called before an entity is finished. - 
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
 
 -