<?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/my_nav"

    app:startDestination="@id/homeFragment">

    <fragment
        android:id="@+id/bossFragment"
        android:name="com.example.shakecraft.BossFragment"
        android:label="fragment_boss"
        tools:layout="@layout/fragment_boss" >
        <action
            android:id="@+id/action_bossFragment_to_homeFragment"
            app:destination="@id/homeFragment"
            app:enterAnim="@android:anim/fade_in"
            app:popUpTo="@id/homeFragment"
            app:popUpToInclusive="true" />
    </fragment>
    <fragment
        android:id="@+id/collectFragment"
        android:name="com.example.shakecraft.CollectFragment"
        android:label="fragment_collect"
        tools:layout="@layout/fragment_collect" >
        <action
            android:id="@+id/action_collectFragment_to_homeFragment"
            app:destination="@id/homeFragment"
            app:enterAnim="@android:anim/fade_in"
            app:popUpTo="@id/homeFragment"
            app:popUpToInclusive="true" />
    </fragment>

    <fragment
        android:id="@+id/plusFragment"
        android:name="com.example.shakecraft.PlusFragment"
        android:label="fragment_plus"
        tools:layout="@layout/fragment_plus" />
    <fragment
        android:id="@+id/inventoryFragment"
        android:name="com.example.shakecraft.InventoryFragment"
        android:label="fragment_inventory"
        tools:layout="@layout/fragment_inventory" />
    <fragment
        android:id="@+id/homeFragment"
        android:name="com.example.shakecraft.HomeFragment"
        android:label="HomeFragment" >
        <action
            android:id="@+id/action_homeFragment_to_collectFragment"
            app:destination="@id/collectFragment"
            app:enterAnim="@android:anim/fade_in"
            app:popUpTo="@id/homeFragment"
            app:popUpToInclusive="true"
            app:popUpToSaveState="true"
            app:restoreState="true" />
        <action
            android:id="@+id/action_homeFragment_to_bossFragment"
            app:destination="@id/bossFragment"
            app:enterAnim="@android:anim/fade_in" />
        <action
            android:id="@+id/action_homeFragment_to_forgeFragment"
            app:destination="@id/forgeFragment" />
    </fragment>
    <fragment
        android:id="@+id/forgeFragment"
        android:name="com.example.shakecraft.ForgeFragment"
        android:label="ForgeFragment" >
        <action
            android:id="@+id/action_forgeFragment_to_homeFragment"
            app:destination="@id/homeFragment"
            app:enterAnim="@android:anim/fade_in"
            app:popUpTo="@id/homeFragment"
            app:popUpToInclusive="true" />
        <action
            android:id="@+id/action_forgeFragment_to_craftFragment"
            app:destination="@id/craftFragment" />
    </fragment>
    <fragment
        android:id="@+id/craftFragment"
        android:name="com.example.shakecraft.CraftFragment"
        android:label="CraftFragment" >
        <action
            android:id="@+id/action_craftFragment_to_forgeFragment"
            app:destination="@id/forgeFragment"
            app:enterAnim="@android:anim/fade_in" />
        <argument
            android:name="recipe"
            app:argType="com.example.shakecraft.model.Recipe" />
    </fragment>
</navigation>