Esempio n. 1
0
        protected override void OnCreateInfluence(Influence influence)
        {
            base.OnCreateInfluence(influence);

            if (influence is FastMoveInfluence)
            {
                fastMoveInfluence = (FastMoveInfluence)influence;
            }
            else if (influence is FreezeMoveInfluence)//Incin
            {
                freezeMoveInfluence = (FreezeMoveInfluence)influence;
            }
            else if (influence is FastAttackInfluence)
            {
                fastAttackInfluence = (FastAttackInfluence)influence;
            }
            else if (influence is BigDamageInfluence)
            {
                bigDamageInfluence = (BigDamageInfluence)influence;
            }
            else if (influence is DamageInfluence)
            {
                damageInfluence = (DamageInfluence)influence;
            }
        }
Esempio n. 2
0
        protected override void OnCreateInfluence(Influence influence)
        {
            base.OnCreateInfluence(influence);

            if (influence is FastMoveInfluence)
                fastMoveInfluence = (FastMoveInfluence)influence;
            else if (influence is FreezeMoveInfluence)//Incin
                freezeMoveInfluence = (FreezeMoveInfluence)influence;
            else if (influence is FastAttackInfluence)
                fastAttackInfluence = (FastAttackInfluence)influence;
            else if (influence is BigDamageInfluence)
                bigDamageInfluence = (BigDamageInfluence)influence;
            else if (influence is DamageInfluence)
                damageInfluence = (DamageInfluence)influence;
        }
Esempio n. 3
0
 protected virtual void OnCreateInfluence( Influence influence )
 {
     //AutomaticInfluences
     for( int n = 0; n < Type.AutomaticInfluences.Count; n++ )
     {
         DynamicType.AutomaticInfluenceItem typeItem = Type.AutomaticInfluences[ n ];
         if( typeItem.Influence == influence.Type )
         {
             if( automaticInfluences == null )
                 automaticInfluences = new Influence[ Type.AutomaticInfluences.Count ];
             automaticInfluences[ n ] = influence;
         }
     }
 }