Package model
Class Sniper
java.lang.Object
model.Entity
model.Building
model.Tower
model.Sniper
- All Implemented Interfaces:
Serializable
Implementation of Sniper Tower type.
- See Also:
-
Field Summary
Fields inherited from class model.Tower
attackSpeed, canAttack, level, range, targetCount, targets, targetsPerAttack
Fields inherited from class model.Building
canUpgrade, isDestroyed, isUpgraded, upgradeCost
Fields inherited from class model.Entity
animObj, damage, healthPoints, isAlive, isAnimated, maxHealthPoints, owner, position, side, size, type, value
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class model.Tower
attack, getAttackSpeed, getImage, getLevel, getRange, getTargets, getUpgradeCost, isCanAttack, selectTargets, takeDamage, transform, upgrade
Methods inherited from class model.Building
destroy, isDestroyed, setDestroyed
Methods inherited from class model.Entity
getAnimObj, getDamage, getHealthPoints, getMaxHealthPoints, getOwner, getPosition, getSide, getSize, getType, getValue, invert, isAlive, isAnimated, killUnit, setAlive, setAnimated, setIsAnimated, setOwner, setPosition, setSide
-
Constructor Details
-
Sniper
Constructs a Sniper instance.- Parameters:
position
- the sniper's position on the Mapside
- the side it belongs to
-
Sniper
Constructs a Sniper instance.- Parameters:
position
- the sniper's position on the Map
-