예제 #1
0
파일: GuildMember.cs 프로젝트: paluch/WCPAL
 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;
 }
예제 #2
0
파일: Emblem.cs 프로젝트: paluch/WCPAL
        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;
        }
예제 #3
0
파일: Emblem.cs 프로젝트: paluch/WCPAL
        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);
        }