rl.centurion.game
Class InfantrySquadMovement
java.lang.Object
rl.centurion.game.ElementMovement
rl.centurion.game.InfantrySquadMovement
public class InfantrySquadMovement
- extends ElementMovement
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InfantrySquadMovement
public InfantrySquadMovement(CenturionBoard board,
InfantrySquad squad,
Location location,
int turn,
java.util.Vector<GameElementLocationAffiliation> elementLocations)
getInfantrySquad
public InfantrySquad getInfantrySquad()
getTurn
public int getTurn()
getMovementSummary
public GameElementMovementSummary getMovementSummary()
- Specified by:
getMovementSummary in class ElementMovement
getDamageSummaries
public java.util.Vector<GameElementDamageSummary> getDamageSummaries()
- Specified by:
getDamageSummaries in class ElementMovement
setLocation
public void setLocation(Location csl)
getLocation
public Location getLocation()
getLocations
public java.util.Vector<Location> getLocations()
- Specified by:
getLocations in class ElementMovement
getMPs
public int getMPs()
getMPsUsed
public int getMPsUsed()
getMPsRemaining
public int getMPsRemaining()
isOnOverwatch
public boolean isOnOverwatch()
isConcealed
public boolean isConcealed()
canMoveStraight
public boolean canMoveStraight()
canMoveBackward
public boolean canMoveBackward()
canTurnLeft
public boolean canTurnLeft()
canTurnRight
public boolean canTurnRight()
canConceal
public boolean canConceal()
canEmbark
public boolean canEmbark(boolean playing)
canEnterBuilding
public boolean canEnterBuilding()
canExitBuilding
public boolean canExitBuilding()
canMoveUpLevel
public boolean canMoveUpLevel()
canMoveDownLevel
public boolean canMoveDownLevel()
canDeclareOpportunityFire
public boolean canDeclareOpportunityFire()
isOnBoard
public boolean isOnBoard()
isInBuilding
public boolean isInBuilding()
isInVehicle
public boolean isInVehicle()
moveStraight
public boolean moveStraight(int pointCost)
moveBackward
public boolean moveBackward()
turnLeft
public boolean turnLeft()
turnRight
public boolean turnRight()
enterBuilding
public boolean enterBuilding()
exitBuilding
public boolean exitBuilding()
moveUpLevel
public boolean moveUpLevel()
moveDownLevel
public boolean moveDownLevel()
enterVehicle
public boolean enterVehicle()
declareOpportunityFire
public boolean declareOpportunityFire()
setConcealed
public boolean setConcealed()
getEligibleVehiclesInLocation
public java.util.Vector<GameElement> getEligibleVehiclesInLocation(boolean playing)
- gets all of the vehicles that are co-located with the infantry squad and are eligible to
embark the infantry into
- Returns:
- The list of vehicles that are eligible to embark into
getEligibleBuildingsInLocation
public java.util.Vector<GameElement> getEligibleBuildingsInLocation()
- gets all of the buildings in the same location as the infantry squad
- Returns:
- The buildings in the same location as the infantry
canEmbarkInsideVehicle
public boolean canEmbarkInsideVehicle(Vehicle vehicle,
boolean playing)
- If the squad can embark on this vehicle, can it do so inside the vehicle
- Parameters:
vehicle -
- Returns:
- if the squad can embark inside the vehicle
canEmbarkOutsideVehicle
public boolean canEmbarkOutsideVehicle(Vehicle vehicle,
boolean playing)
- If the squad can embark on this vehicle, can it do so outside the vehicle
- Parameters:
vehicle -
- Returns:
- if the squad can embark inside the vehicle
setOffboard
public void setOffboard()
getMaximumEntryLevel
public int getMaximumEntryLevel(Building building)
removePendingMovement
public void removePendingMovement()
- Specified by:
removePendingMovement in class ElementMovement