Influences are effects on objects. For example, the ability to burn a monster, is implemented through the use of influences.
Inheritance: System.Entity
Esempio n. 1
0
        protected override void OnCreateInfluence(Influence influence)
        {
            base.OnCreateInfluence(influence);

            if (influence is FastMoveInfluence)
            {
                fastMoveInfluence = (FastMoveInfluence)influence;
            }
            else if (influence is FastAttackInfluence)
            {
                fastAttackInfluence = (FastAttackInfluence)influence;
            }
            else if (influence is BigDamageInfluence)
            {
                bigDamageInfluence = (BigDamageInfluence)influence;
            }
        }
Esempio n. 2
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;
         }
     }
 }
Esempio n. 3
0
        protected override void OnCreateInfluence( Influence influence )
        {
            base.OnCreateInfluence( influence );

            if( influence is FastMoveInfluence )
                fastMoveInfluence = (FastMoveInfluence)influence;
            else if( influence is FastAttackInfluence )
                fastAttackInfluence = (FastAttackInfluence)influence;
            else if( influence is BigDamageInfluence )
                bigDamageInfluence = (BigDamageInfluence)influence;
        }