Bandidos
|
Classes | |
enum | BowStage |
Static Public Attributes | |
static final float | MAX_DRAW_STRENGTH = 30f |
static final float | MAX_DRAW_LENGTH = 200f |
Protected Member Functions | |
void | updated (float dt) |
void | destroyed () |
float | powerToDistancePower () |
abstract BaseProjectile | createRandomSpecialProjectile (int specialType) |
abstract void | selectedTarget (int x, int y) |
abstract void | drawingBow (int x, int y) |
abstract void | shotBow (float strengthPercentage, float minimum) |
abstract void | bowSetToStage (BowStage stage) |
abstract Vector2 | projectilePullDistance () |
abstract BaseProjectile | getProjectileInstance () |
Protected Member Functions inherited from com.mygdx.game.engine.entities.BaseEntity | |
abstract void | awake () |
abstract void | updated (float dt) |
abstract void | rendered (RenderComponents renderComponents) |
abstract void | destroyed () |
This is the base class for all the Bow like weapons.
com.mygdx.game.entities.weapons.BaseBowWeapon.BaseBowWeapon | ( | RenderInfo | renderInfoBow | ) |
In order to work, the bow needs a RenderInfo which contain different frames of "Pulling the string"
renderInfoBow | Of a bow with all the frames of pulling the string |
void com.mygdx.game.entities.weapons.BaseBowWeapon.activateSpecial | ( | int | specialType | ) |
This activates the special ability of the weapon
specialType | is a user defines special type |
Implements com.mygdx.game.entities.weapons.IWeapon.
|
abstractprotected |
Called when the bow has been switched in stage
stage | it has been switched to |
void com.mygdx.game.entities.weapons.BaseBowWeapon.clean | ( | ) |
Makes the class ready for garbage collection.
Implements com.mygdx.game.entities.weapons.IWeapon.
|
abstractprotected |
|
protected |
|
abstractprotected |
Called every frame when the bow is in its drawing stage
x | location which the current aim is pointed at |
y | location which the current aim is pointed at |
void com.mygdx.game.entities.weapons.BaseBowWeapon.endControl | ( | int | x, |
int | y | ||
) |
Where the touch is when the weapon control stops
x | position of the touch |
y | position of the touch |
Implements com.mygdx.game.entities.weapons.IWeapon.
BowStage com.mygdx.game.entities.weapons.BaseBowWeapon.getCurrentBowStage | ( | ) |
Returns the current stage the bow is in.
float com.mygdx.game.entities.weapons.BaseBowWeapon.getCurrentDrawStrength | ( | ) |
Returns the current draw strength value of the bow. (Normalized value, 0 being weakest and 1 being the strongest)
BaseProjectile com.mygdx.game.entities.weapons.BaseBowWeapon.getCurrentProjectile | ( | ) |
Returns the current loaded projectile instance on the bow
|
abstractprotected |
Called when the bow needs a new ArrowProjectile.
WeaponType com.mygdx.game.entities.weapons.BaseBowWeapon.getWeaponType | ( | ) |
Returns the weapon type of this weapon instance.
Implements com.mygdx.game.entities.weapons.IWeapon.
void com.mygdx.game.entities.weapons.BaseBowWeapon.inControl | ( | int | x, |
int | y | ||
) |
Where the touch is while it is controlling the weapon
x | position of the touch |
y | position of the touch |
Implements com.mygdx.game.entities.weapons.IWeapon.
|
protected |
Returns the distance the bow can shoot in pixels with its draw strength.
|
abstractprotected |
Called to position the projectile on the bow. Indicates the distance the projectile should be positioned in delta from its original position. (To match the bow draw animation)
|
abstractprotected |
Called when a target location is selected to start the aim at
x | indicates the x position of the selected location to start the aim |
y | indicates the y position of the selected location to start the aim |
|
abstractprotected |
Called when the bow has shot an ArrowProjectile
strengthPercentage | is the normalized strength used to fire the projectile |
minimum | is the minimum percentage which the strengthPercentage should be clamped to |
void com.mygdx.game.entities.weapons.BaseBowWeapon.startControl | ( | int | x, |
int | y | ||
) |
Where the touch is when it starts controlling the weapon
x | position of the touch |
y | position of the touch |
Implements com.mygdx.game.entities.weapons.IWeapon.
|
protected |
|
static |
|
static |