public ActorModel(string imageID, string name, string pluralName, int scoreValue, DollBody body, Abilities abilities, ActorSheet startingSheet, Type defaultController) { if (name == null) { throw new ArgumentNullException("name"); } if (body == null) { throw new ArgumentNullException("body"); } if (abilities == null) { throw new ArgumentNullException("abilities"); } if (startingSheet == null) { throw new ArgumentNullException("startingSheet"); } if (defaultController != null && !defaultController.IsSubclassOf(typeof(ActorController))) { throw new ArgumentException("defaultController is not a subclass of ActorController"); } m_ImageID = imageID; m_DollBody = body; m_Name = name; m_PluralName = pluralName; m_StartingSheet = startingSheet; m_Abilities = abilities; m_DefaultController = defaultController; m_ScoreValue = scoreValue; m_CreatedCount = 0; }
public Doll(DollBody body) { m_Body = body; m_Decorations = new List <string> [(int)DollPart._COUNT]; }