Re: Developer Plans
Posted: 10 Feb 2014, 06:38
@Hellfish, how about this code?
- Code: Select all
public enum KeywordType {
Flying(KwParamType.None, null),
Equip(KwParamType.Cost, "%s: Attach to target creature you control. Equip only as a sorcery.")
Annihilator(KwParamType.Number, "Whenever this creature attacks, defending player sacrifices %d permanent(s).");
// list all KWs
public KeywordType(KwParamType parameter, String hint) { ... }
}
public class KeywordInstance<T> {
KeywordType type;
T parameter;
boolean isHidden;
boolean isIntrinsic;
// more fields if needed
}