Beispiel #1
0
 private void PCStartEndTurn_StartingTurn(object sender,
                                          StartingTurnEventArgs e)
 {
     if (!GetComponent <LocalManager>().MatchID(e.ObjectID))
     {
         return;
     }
 }
Beispiel #2
0
 private void PCInputSwitcher_StartingTurn(object sender,
                                           StartingTurnEventArgs e)
 {
     if (!GetComponent <LocalManager>().MatchID(e.ObjectID))
     {
         return;
     }
     EnableInput(true);
 }
Beispiel #3
0
        private void SkillCooldown_StartingTurn(object sender,
                                                StartingTurnEventArgs e)
        {
            if (!GetComponent <LocalManager>().MatchID(e.ObjectID))
            {
                return;
            }

            // TODO: Freeze counting down if PC has Water- curse.
            foreach (SkillNameTag snt in currentCDDict.Keys.ToArray())
            {
                if (currentCDDict[snt] > minCD)
                {
                    SetCurrentCooldown(snt, --currentCDDict[snt]);
                }
            }
        }
Beispiel #4
0
        private void DummyAI_StartingTurn(object sender, StartingTurnEventArgs e)
        {
            if (!GetComponent <LocalManager>().MatchID(e.ObjectID))
            {
                return;
            }

            ActionTag action  = ActionTag.Skip;
            MainTag   mainTag = GetComponent <MetaInfo>().MainTag;
            SubTag    subTag  = GetComponent <MetaInfo>().SubTag;
            int       id      = GetComponent <MetaInfo>().ObjectID;

            GetComponent <LocalManager>().TakingAction(
                new TakingActionEventArgs(action, mainTag, subTag, id));
            GetComponent <LocalManager>().TakenAction(
                new TakenActionEventArgs(action, mainTag, subTag, id));
        }