/** * Determine if the given entity is a valid one to use for this turn. * * @param entity the <code>Entity</code> being tested for the move. * @param game the <code>IGame</code> the entity belongs to * @return <code>true</code> if the entity can be moved. */ @Override public boolean isValidEntity(Entity entity, IGame game, boolean useValidNonInfantryCheck) { // The entity must be in the mask, and pass // the requirements of the parent class. return ((GameTurn.getClassCode(entity) & mask) != 0) && super.isValidEntity(entity, game, useValidNonInfantryCheck); }