Ejemplo n.º 1
0
 public static void RaiseGameplayEvent(string message, PF_GamePlay.GameplayEventTypes type)
 {
     if (OnGameplayEvent != null)
     {
         OnGameplayEvent(message, type);
     }
 }
Ejemplo n.º 2
0
    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();
        }
    }
Ejemplo n.º 3
0
    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;
        }
    }
Ejemplo n.º 4
0
    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);
        }
    }
Ejemplo n.º 5
0
    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();
        }
    }
Ejemplo n.º 7
0
    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();
            }
        }
    }
Ejemplo n.º 8
0
 void OnGameplayEventReceived(string message, PF_GamePlay.GameplayEventTypes type)
 {
 }