Ejemplo n.º 1
0
        public ActorAttributes GetEffectiveAttributes()
        {
            ActorAttributes effectiveAttributes = ModifiedAttributes.Clone();

            foreach (Effect.Effect effect in Effects)
            {
                if (!effect.PerTurn)
                {
                    effect.ApplyTo(effectiveAttributes, BaseAttributes);
                }
            }
            return(effectiveAttributes);
        }
Ejemplo n.º 2
0
 public ActorAttributes(ActorAttributes other)
 {
     InitiativeMod = other._initiativeMod;
     Active        = other._active;
 }
Ejemplo n.º 3
0
 public PlayerActor(ActorAttributes attributes)
     : base(attributes)
 {
 }
Ejemplo n.º 4
0
 public Actor(XmlNode xmlNode)
 {
     ReadXML(xmlNode);
     ModifiedAttributes = new ActorAttributes(BaseAttributes);
 }
Ejemplo n.º 5
0
 public Actor(ActorAttributes attributes)
 {
     BaseAttributes     = new ActorAttributes(attributes);
     ModifiedAttributes = new ActorAttributes(attributes);
 }
Ejemplo n.º 6
0
 public Actor(Actor other)
 {
     BaseAttributes     = new ActorAttributes(other.BaseAttributes);
     ModifiedAttributes = new ActorAttributes(BaseAttributes);
 }