Back to project page feup-lpoo-android-tower-defense.
The source code is released under:
MIT License
If you think the Android project feup-lpoo-android-tower-defense listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package pt.up.fe.lpoo.towerdefense; // w w w .ja v a 2 s .c o m import pt.up.fe.lpoo.framework.Image; /** * This class is the type of projectile fired by the TurretTower defense * @author Joao Marinheiro * @author Luis Cleto * @see Projectile * @see TurretTower */ public class TurretProjectile extends Projectile { /** * Constructor for the TurretProjectile class. Calls the superclass's constructor and sets the damage type * @param iniX original x position * @param iniY original y position * @param goalX destination x position * @param goalY destionation y position * @param movementSpeed speed at which the projectile travels (number of pixels it travels 50 times every second) * @param projectileDamage base damage the projectile inflicts on an enemy */ public TurretProjectile(int iniX, int iniY, int goalX, int goalY, int movementSpeed, int projectileDamage) { super(iniX, iniY, goalX, goalY, movementSpeed, projectileDamage); damageType = Enemy.DamageType.Piercing; } /** * @return returns the current Image to represent the projectile */ @Override public Image getCurrentImage() { return Assets.turretProjectile; } }