Package model
Class Assassin
java.lang.Object
model.Entity
model.Soldier
model.Assassin
- All Implemented Interfaces:
Serializable
Implementation of Assassin special soldier type.
- See Also:
-
Field Summary
Fields inherited from class model.Soldier
castleParts, path, pathfinder, speed, target, terrains, visualizationEnd, visualizationStart, wayPoints
Fields inherited from class model.Entity
animObj, damage, healthPoints, isAlive, isAnimated, maxHealthPoints, owner, position, range, side, size, type, value
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
attack()
Attacks the unit's target if nearby.void
selectTargets
(ArrayList<Soldier> targets) Sets the soldier's targets.Methods inherited from class model.Soldier
addWaypoint, calculatePath, getAbsPath, getImage, getPath, getSpeed, getTerrains, getWayPoints, isTargeted, selectTarget, setTargeted
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, takeDamage
-
Constructor Details
-
Assassin
Constructs a new Assassin instance.- Parameters:
position
- the assassin's position
-
-
Method Details