public BattlePawn(Models.Common.Attributes baseAttributes, List <Models.Action.ActionRoot> actions) { this.baseAttributes = baseAttributes; this.actions = actions; this.maxHitPoints = baseAttributes.strength; this.currentHitPoints = baseAttributes.strength; }
public Models.Common.Attributes GetAttributes() { Models.Common.Attributes result = new Models.Common.Attributes(); armor.Where(x => x.Value?.attributes != null).ToList().ForEach(x => result += x.Value.attributes); return(result); }
public BattleCommander(Models.Common.Attributes baseAttributes, List <Models.Action.ActionRoot> actions) { battlePawn = new Logic.Pawns.BattlePawn(baseAttributes, actions); }