/** * Used by parent activity to select a unit within this fragment * * @param unitPos the position of Unit selected */ public void selectUnitAtUnitArrayPos(int unitPos) { //unitPos will be -1 if it wasn't found if (unitPos != -1 && mUnitType != null) clickUnitButton(mUnitType.findButtonPositionforUnitArrayPos(unitPos)); }