A Normal Bow Weapon.
- Author
- Ramses Di Perna
◆ BowWeapon()
com.mygdx.game.entities.weapons.BowWeapon.BowWeapon |
( |
World |
world | ) |
|
In order to be able to draw its line of aim, it needs to have a world to raycast in.
- Parameters
-
world | which all the physics are handled in. |
◆ awake()
void com.mygdx.game.entities.weapons.BowWeapon.awake |
( |
| ) |
|
|
protected |
◆ bowSetToStage()
void com.mygdx.game.entities.weapons.BowWeapon.bowSetToStage |
( |
BowStage |
stage | ) |
|
|
protected |
◆ createRandomSpecialProjectile()
BaseProjectile com.mygdx.game.entities.weapons.BowWeapon.createRandomSpecialProjectile |
( |
int |
specialType | ) |
|
|
protected |
◆ destroyed()
void com.mygdx.game.entities.weapons.BowWeapon.destroyed |
( |
| ) |
|
|
protected |
◆ drawingBow()
void com.mygdx.game.entities.weapons.BowWeapon.drawingBow |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
protected |
◆ getProjectileInstance()
BaseProjectile com.mygdx.game.entities.weapons.BowWeapon.getProjectileInstance |
( |
| ) |
|
|
protected |
◆ projectilePullDistance()
Vector2 com.mygdx.game.entities.weapons.BowWeapon.projectilePullDistance |
( |
| ) |
|
|
protected |
Gives the Arrow location it requires to be in the animation. NOTE: Must be adjusted when art changes!
- Returns
- The Arrow position in sink with the animation.
◆ rendered()
void com.mygdx.game.entities.weapons.BowWeapon.rendered |
( |
RenderComponents |
renderComponents | ) |
|
|
protected |
◆ selectedTarget()
void com.mygdx.game.entities.weapons.BowWeapon.selectedTarget |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
protected |
◆ shotBow()
void com.mygdx.game.entities.weapons.BowWeapon.shotBow |
( |
float |
strengthPercentage, |
|
|
float |
minimum |
|
) |
| |
|
protected |
Fires the current arrow from the bow with the strength given.
- Parameters
-
strengthPercentage | makes the arrow shoot in distance of powerToDistancePower() * the value and the strength of MAX_DRAW_STRENGTH * the value |
minimum | is the minimum the shooting strength should be. If its below that it will be put onto the minimum value |
◆ updated()
void com.mygdx.game.entities.weapons.BowWeapon.updated |
( |
float |
dt | ) |
|
|
protected |
The documentation for this class was generated from the following file:
- C:/Users/RamsesPC/Documents/LibGDXGames/PvB/core/src/com/mygdx/game/entities/weapons/BowWeapon.java