-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5d13e6
commit 8dcd4ee
Showing
13 changed files
with
119 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ | |
import android.app.FragmentTransaction; | ||
|
||
import com.github.sadaharusong.wolfkillassistant.R; | ||
import com.github.sadaharusong.wolfkillassistant.model.GameInfo; | ||
import com.github.sadaharusong.wolfkillassistant.model.Role; | ||
import com.github.sadaharusong.wolfkillassistant.model.RoleMap; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
@@ -18,29 +18,20 @@ | |
* Github : https://github.com/sadaharusong | ||
* Email : [email protected] | ||
*/ | ||
public class FragmentJumpManager { | ||
private static FragmentJumpManager mManager; | ||
private static Map<Integer,Role> mPlayMap = RoleMap.getInstance().getRoleMap(); | ||
public class GameFragmentManager { | ||
private static GameFragmentManager mManager; | ||
private static Map<Integer,Role> mPlayMap = GameInfo.getInstance().getRoleMap(); | ||
public static List<Integer> thisRoundPosition = new ArrayList<>(); | ||
|
||
FragmentManager mFragmentManager; | ||
private FragmentManager mFragmentManager; | ||
|
||
public static final int WOLF_FRAGMENT = 1; | ||
public static final int WITCH_FRAGMENT = 2; | ||
public static final int SEER_FRAGMENT = 3; | ||
public static final int FNINAL_FRAGMENT = -1; | ||
|
||
FragmentJumpManager(){} | ||
|
||
public static FragmentJumpManager getInstance(){ | ||
if (mManager == null){ | ||
mManager = new FragmentJumpManager(); | ||
} | ||
return mManager; | ||
} | ||
|
||
public void init(FragmentManager ft){ | ||
this.mFragmentManager = ft; | ||
public GameFragmentManager(FragmentManager fragmentManager){ | ||
mFragmentManager = fragmentManager; | ||
} | ||
|
||
public void jumpToNextFragment(int flag){ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.