Package model
Class Shotgun
java.lang.Object
model.Entity
model.Building
model.Tower
model.Shotgun
- All Implemented Interfaces:
Serializable
Implementation of Shotgun 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
-
Shotgun
Constructs a Shotgun instance.- Parameters:
position
- the sniper's position on the Mapside
- the side it belongs to
-
Shotgun
Constructs a Shotgun instance.- Parameters:
position
- the sniper's position on the Map
-