public static Boolean IsNumeric(DragonType p) { if (p == Char || p == Float || p == Int) { return(true); } else { return(false); } }
public static DragonType Max(DragonType p1, DragonType p2) { if (!(IsNumeric(p1)) || !(IsNumeric(p2))) { return(null); } else if (p1 == Float || p2 == Float) { return(Float); } else if (p1 == Int || p2 == Int) { return(Int); } else { return(Char); } }
public DragonArray(int sz, DragonType p) : base("[]", DragonTag.INDEX, sz * p.Width) { size = sz; of = p; }