public class MissionSpecificPalletFragment extends Fragment implements BattlePositionLayoutHandler.BattlePositionSelectorEventHandler
Modifier and Type | Class and Description |
---|---|
static interface |
MissionSpecificPalletFragment.Slot
This interface describes a capability that can be installed as part of slots 1,2,3,4 of the
Mission package framgment.
|
Constructor and Description |
---|
MissionSpecificPalletFragment() |
Modifier and Type | Method and Description |
---|---|
void |
clearSelection(boolean bPauseListener) |
MapItem |
getPointPlacedIntent(GeoPointMetaData point,
java.lang.String uid) |
void |
onCreate(android.os.Bundle savedInstanceState) |
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState) |
void |
onGridSelected(BattlePositionHoldingArea bpha) |
void |
onPause() |
void |
onResume() |
static void |
registerSlot(int slotOffset,
MissionSpecificPalletFragment.Slot slot)
Allow for other utilities to register up to 4 additional point dropper
capabilities within the mission tab.
|
void |
unregisterSlot(int slotOffset)
Allows for a dynamically registered capability within the pallet to be unregistered.
|
static void |
unregisterSlot(MissionSpecificPalletFragment.Slot slot)
Allows for a dynamically registered capability within the pallet to be unregistered.
|
public void onCreate(android.os.Bundle savedInstanceState)
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
public static void registerSlot(int slotOffset, MissionSpecificPalletFragment.Slot slot)
slotOffset
- the current slot to register a pallet icon [0..3]slot
- the image to place in the slotpublic void unregisterSlot(int slotOffset)
slotOffset
- the current slot to register a pallet icon [0..3]public static void unregisterSlot(MissionSpecificPalletFragment.Slot slot)
slot
- the previously registered slotpublic void onPause()
public void clearSelection(boolean bPauseListener)
public void onResume()
public MapItem getPointPlacedIntent(GeoPointMetaData point, java.lang.String uid) throws IconPallet.CreatePointException
IconPallet.CreatePointException
public void onGridSelected(BattlePositionHoldingArea bpha)
onGridSelected
in interface BattlePositionLayoutHandler.BattlePositionSelectorEventHandler