Exemplo n.º 1
0
 public GuildMember(string name, string realm, int level, int members, int achPoints, Emblem emblem)
 {
     _name = name;
     _realm = realm;
     _level = level;
     _members = members;
     _achPoints = achPoints;
     _emblem = emblem;
 }
Exemplo n.º 2
0
        public static Emblem ReadEmblem(XElement emblem)
        {
            Emblem e;

            e = new Emblem(
                int.Parse(emblem.Element("icon").Value),
                emblem.Element("iconColor").Value,
                int.Parse(emblem.Element("border").Value),
                emblem.Element("borderColor").Value,
                emblem.Element("backgroundColor").Value
                );

            return e;
        }
Exemplo n.º 3
0
        public bool Equals(Emblem realm)
        {
            // if paramter is null return false;
            if (realm == null)
            {
                return false;
            }

            return (_icon == realm.Icon && _iconColor == realm.IconColor && _border == realm.Border && _borderColor == realm.BorderColor && _backgroundColor == realm.BackgroundColor);
        }