Пример #1
0
 public AttributeKeyword(String keyword, CharacterAttributeType type, int defval, bool useDefault)
     : base(keyword, KeywordType.Attribute)
 {
     _default = defval;
     _useDefault = useDefault;
     _charAttrType = type;
 }
Пример #2
0
        public static AttributeKeyword findAttributeKeyword(CharacterAttributeType attrType)
        {
            foreach (Keyword kwd in KEYWORDS.Values)
            {
                if (kwd is AttributeKeyword)
                {
                    AttributeKeyword attrKwd = (AttributeKeyword)kwd;
                    if (attrKwd.getAttributeType() == attrType)
                    {
                        return(attrKwd);
                    }
                }
            }

            return(null);
        }
Пример #3
0
 public AttributeKeyword(String keyword, CharacterAttributeType type, int defval, bool useDefault) : base(keyword, KeywordType.Attribute)
 {
     _default      = defval;
     _useDefault   = useDefault;
     _charAttrType = type;
 }
Пример #4
0
        public static AttributeKeyword findAttributeKeyword(CharacterAttributeType attrType)
        {
            foreach (Keyword kwd in KEYWORDS.Values) {
            if (kwd is AttributeKeyword) {
                AttributeKeyword attrKwd = (AttributeKeyword) kwd;
                if (attrKwd.getAttributeType() == attrType) {
                    return attrKwd;
                }
            }
            }

            return null;
        }
 public void set(CharacterAttributeType attrType, int value)
 {
     _attrMap[attrType] = value;
 }
 public int Get(CharacterAttributeType attrType)
 {
     return(_attrMap[attrType]);
 }
Пример #7
0
 public void set(CharacterAttributeType attrType, int value)
 {
     _attrMap[attrType] = value;
 }
Пример #8
0
 public int Get(CharacterAttributeType attrType)
 {
     return _attrMap[attrType];
 }