public ActorAttributes GetEffectiveAttributes() { ActorAttributes effectiveAttributes = ModifiedAttributes.Clone(); foreach (Effect.Effect effect in Effects) { if (!effect.PerTurn) { effect.ApplyTo(effectiveAttributes, BaseAttributes); } } return(effectiveAttributes); }
public ActorAttributes(ActorAttributes other) { InitiativeMod = other._initiativeMod; Active = other._active; }
public PlayerActor(ActorAttributes attributes) : base(attributes) { }
public Actor(XmlNode xmlNode) { ReadXML(xmlNode); ModifiedAttributes = new ActorAttributes(BaseAttributes); }
public Actor(ActorAttributes attributes) { BaseAttributes = new ActorAttributes(attributes); ModifiedAttributes = new ActorAttributes(attributes); }
public Actor(Actor other) { BaseAttributes = new ActorAttributes(other.BaseAttributes); ModifiedAttributes = new ActorAttributes(BaseAttributes); }