public static void RaiseGameplayEvent(string message, PF_GamePlay.GameplayEventTypes type) { if (OnGameplayEvent != null) { OnGameplayEvent(message, type); } }
void OnGameplayEventReceived(string message, PF_GamePlay.GameplayEventTypes type) { //Debug.Log(string.Format("{0} -- {1}",type.ToString(), message)); if (type == PF_GamePlay.GameplayEventTypes.IntroQuest) { RaiseGameplayEvent(GlobalStrings.QUEST_START_EVENT, PF_GamePlay.GameplayEventTypes.IntroAct); } if (type == PF_GamePlay.GameplayEventTypes.IntroEncounter) { } if (type == PF_GamePlay.GameplayEventTypes.IntroEncounter) { } if (type == PF_GamePlay.GameplayEventTypes.PlayerTurnBegins) { } if (type == PF_GamePlay.GameplayEventTypes.EnemyTurnBegins) { EnemyAttackPlayer(); } }
void OnGameplayEventReceived(string message, PF_GamePlay.GameplayEventTypes type) { switch (type) { case PF_GamePlay.GameplayEventTypes.IntroQuest: RaiseGameplayEvent(GlobalStrings.QUEST_START_EVENT, PF_GamePlay.GameplayEventTypes.IntroAct); break; case PF_GamePlay.GameplayEventTypes.EnemyTurnBegins: EnemyAttackPlayer(); break; } }
void OnGameplayEventReceived(string message, PF_GamePlay.GameplayEventTypes type) { //Debug.Log(string.Format("{0} -- {1}",type.ToString(), message)); if (type == PF_GamePlay.GameplayEventTypes.IntroAct) { ActIntroObject.ShowInfo(ActIntroController.DisplayStates.ActIntro); PF_GamePlay.OutroPane(QuestIntroObject.gameObject, .75f); } // if(type == PF_GamePlay.GameplayEventTypes.OutroAct) // { // //ActIntroObject.ShowInfo(ActIntroController.DisplayStates.ActOutro); // //PF_GamePlay.IntroPane(ActIntroObject.gameObject, .75f); // } if (type == PF_GamePlay.GameplayEventTypes.IntroQuest) { //QuestIntroObject.UpdateLevedetails(); //PF_GamePlay.IntroPane(QuestIntroObject.gameObject, .75f); } if (type == PF_GamePlay.GameplayEventTypes.StartBossBattle) { ActIntroObject.ShowInfo(ActIntroController.DisplayStates.BossIntro); //PF_GamePlay.IntroPane(ActIntroObject.gameObject, .75f); } if (type == PF_GamePlay.GameplayEventTypes.PlayerDied) { ActIntroObject.ShowInfo(ActIntroController.DisplayStates.PlayerDied); PF_GamePlay.IntroPane(ActIntroObject.gameObject, .75f); this.QuestCompleteObject.UpdateQuestStats(); PF_GamePlay.IntroPane(this.QuestCompleteObject.gameObject, .75f); } if (type == PF_GamePlay.GameplayEventTypes.OutroQuest) { // if(PF_GamePlay.UseRaidMode == false) // { // //ActIntroObject.ShowInfo(ActIntroController.DisplayStates.ActOutro); // PF_GamePlay.IntroPane(ActIntroObject.gameObject, .75f); // } this.QuestCompleteObject.UpdateQuestStats(); PF_GamePlay.IntroPane(this.QuestCompleteObject.gameObject, .75f); } }
void OnGameplayEventReceived(string message, PF_GamePlay.GameplayEventTypes type) { // if(type == PF_GamePlay.GameplayEventTypes.StartQuest) // { // // load enemy data // TweenCGAlpha.Tween(this.gameObject, 1.0f, 0, 1, TweenMain.Style.Once, TweenMain.Method.EaseIn, null); // // // FX placement // Vector3 pos = myRT.TransformPoint(myRT.position.x, myRT.position.y,0); // GameObject go = FX_Placement.fx_lookup.ContainsKey("CFXM_SmokePuffsAltLarge") ? FX_Placement.fx_lookup["CFXM_SmokePuffsAltLarge"] : null; // StartCoroutine(FX_Placement.FxHereAndFire(new Vector3(pos.x, pos.y, -2), go)); // // //GameplayController.RaiseGameplayEvent("Initial Encounter", PF_GamePlay.GameplayEventTypes.IntroEncounter); // // } }
void OnGameplayEventReceived(string message, PF_GamePlay.GameplayEventTypes type) { if (type == PF_GamePlay.GameplayEventTypes.IntroQuest) { ActionBar.UpdateSpellBar(); Init(); } if (type == PF_GamePlay.GameplayEventTypes.IntroEncounter) { StartCoroutine(PF_GamePlay.Wait(.5f, () => { TransitionEncounterBarIn(); })); } if (type == PF_GamePlay.GameplayEventTypes.PlayerTurnBegins) { TransitionActionBarIn(); } }
void OnGameplayEventReceived(string message, PF_GamePlay.GameplayEventTypes type) { if (type == PF_GamePlay.GameplayEventTypes.IntroQuest) { AdvanceAct(); this.currentEncounter = GetNextEncounter(true); this.gameplayController.enemyController.currentEncounter.UpdateCurrentEncounter(this.currentEncounter); this.gameplayController.enemyController.nextController.UpdateNextEncounters(); this.currentTurnNumber = 1; //this.currentEncounter = PF_GamePlay.encounters.First(); this.currentPlayer = PF_PlayerData.activeCharacter; } if (type == PF_GamePlay.GameplayEventTypes.StartQuest) { StartTurn(); } if (type == PF_GamePlay.GameplayEventTypes.OutroEncounter) { CompleteEncounter(); return; } if (type == PF_GamePlay.GameplayEventTypes.EnemyTurnEnds || type == PF_GamePlay.GameplayEventTypes.PlayerTurnEnds) { if (message.Contains(GlobalStrings.PLAYER_RESPAWN_EVENT)) { gameplayController.playerController.UpdateQuestStats(); StartCoroutine(gameplayController.playerController.LifeBar.UpdateBar(gameplayController.playerController.LifeBar.maxValue)); } else { ToggleTurn(); } } }
void OnGameplayEventReceived(string message, PF_GamePlay.GameplayEventTypes type) { }