public ShowActionProcesses(ActionContainer actionContainer, BasicActionLogic basicActionLogic, FluxxGameContainer gameContainer ) { _actionContainer = actionContainer; _basicActionLogic = basicActionLogic; _gameContainer = gameContainer; }
public LoadActionProcesses(ActionContainer actionContainer, FluxxVMData model, BasicActionLogic basicActionLogic, FluxxGameContainer gameContainer ) { _actionContainer = actionContainer; _model = model; _basicActionLogic = basicActionLogic; _gameContainer = gameContainer; }
public static void LoadSavedGame(this ActionContainer actionContainer, FluxxGameContainer gameContainer) { gameContainer.SingleInfo = gameContainer.PlayerList !.GetSelf(); actionContainer.YourCards !.HandList = gameContainer.SingleInfo.MainHandList; actionContainer.YourKeepers !.HandList = gameContainer.SingleInfo.KeeperList; gameContainer.SingleInfo = gameContainer.PlayerList.GetWhoPlayer(); if (gameContainer.CurrentAction == null) { return; } if (gameContainer.CurrentAction.Deck == EnumActionMain.UseWhatYouTake && gameContainer.SaveRoot !.SavedActionData.SelectedIndex > -1) { BasicActionLogic logic = gameContainer.Resolver.Resolve <BasicActionLogic>(); logic.SavedPlayers(); actionContainer.IndexPlayer = gameContainer.SaveRoot.SavedActionData.SelectedIndex; if (actionContainer.IndexPlayer == -1) { throw new BasicBlankException("Rethink for reloading game"); } actionContainer.Player1 !.SelectSpecificItem(actionContainer.IndexPlayer); } }