예제 #1
0
        public ActorAttributes GetEffectiveAttributes()
        {
            ActorAttributes effectiveAttributes = ModifiedAttributes.Clone();

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