rl.centurion.game
Class InfantrySquadMovement

java.lang.Object
  extended by rl.centurion.game.ElementMovement
      extended by rl.centurion.game.InfantrySquadMovement

public class InfantrySquadMovement
extends ElementMovement


Constructor Summary
InfantrySquadMovement(CenturionBoard board, InfantrySquad squad, Location location, int turn, java.util.Vector<GameElementLocationAffiliation> elementLocations)
           
 
Method Summary
 boolean canConceal()
           
 boolean canDeclareOpportunityFire()
           
 boolean canEmbark(boolean playing)
           
 boolean canEmbarkInsideVehicle(Vehicle vehicle, boolean playing)
          If the squad can embark on this vehicle, can it do so inside the vehicle
 boolean canEmbarkOutsideVehicle(Vehicle vehicle, boolean playing)
          If the squad can embark on this vehicle, can it do so outside the vehicle
 boolean canEnterBuilding()
           
 boolean canExitBuilding()
           
 boolean canMoveBackward()
           
 boolean canMoveDownLevel()
           
 boolean canMoveStraight()
           
 boolean canMoveUpLevel()
           
 boolean canTurnLeft()
           
 boolean canTurnRight()
           
 boolean declareOpportunityFire()
           
 boolean enterBuilding()
           
 boolean enterVehicle()
           
 boolean exitBuilding()
           
 java.util.Vector<GameElementDamageSummary> getDamageSummaries()
           
 java.util.Vector<GameElement> getEligibleBuildingsInLocation()
          gets all of the buildings in the same location as the infantry squad
 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
 InfantrySquad getInfantrySquad()
           
 Location getLocation()
           
 java.util.Vector<Location> getLocations()
           
 int getMaximumEntryLevel(Building building)
           
 GameElementMovementSummary getMovementSummary()
           
 int getMPs()
           
 int getMPsRemaining()
           
 int getMPsUsed()
           
 int getTurn()
           
 boolean isConcealed()
           
 boolean isInBuilding()
           
 boolean isInVehicle()
           
 boolean isOnBoard()
           
 boolean isOnOverwatch()
           
 boolean moveBackward()
           
 boolean moveDownLevel()
           
 boolean moveStraight(int pointCost)
           
 boolean moveUpLevel()
           
 void removePendingMovement()
           
 boolean setConcealed()
           
 void setLocation(Location csl)
           
 void setOffboard()
           
 boolean turnLeft()
           
 boolean turnRight()
           
 
Methods inherited from class rl.centurion.game.ElementMovement
getCurrentLocation, getCurrentLocationIndex, getElement, getFinalLocation, getPreviousLocation, nextLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfantrySquadMovement

public InfantrySquadMovement(CenturionBoard board,
                             InfantrySquad squad,
                             Location location,
                             int turn,
                             java.util.Vector<GameElementLocationAffiliation> elementLocations)
Method Detail

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