public bool IsType(TreatType T) { int tmp; // Get the value tmp = Type; // Remove all bigger type tmp %= ((int)T * 10); // Check if T is set return(tmp >= (int)T); }
public SnakeTreatCellViewModel(TreatType treat) { Treat = treat; }
public Treat(string pName, TreatType pType = TreatType.PhysicAttack, bool pValueNeed = true) : this(pName) { Type = (int)pType; NeedValue = pValueNeed; }
public Treat(TreatType type, decimal mainCost, decimal miscCost) { TypeOfTreat = type; MainCost = mainCost; MiscCost = miscCost; }