public AttributeKeyword(String keyword, CharacterAttributeType type, int defval, bool useDefault) : base(keyword, KeywordType.Attribute) { _default = defval; _useDefault = useDefault; _charAttrType = type; }
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 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]); }
public int Get(CharacterAttributeType attrType) { return _attrMap[attrType]; }