예제 #1
0
파일: Treat.cs 프로젝트: 0xAvier/BushidoApp
        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);
        }
예제 #2
0
 public SnakeTreatCellViewModel(TreatType treat)
 {
     Treat = treat;
 }
예제 #3
0
파일: Treat.cs 프로젝트: 0xAvier/BushidoApp
 public Treat(string pName, TreatType pType = TreatType.PhysicAttack,
              bool pValueNeed = true) : this(pName) {
     Type      = (int)pType;
     NeedValue = pValueNeed;
 }
예제 #4
0
 public Treat(TreatType type, decimal mainCost, decimal miscCost)
 {
     TypeOfTreat = type;
     MainCost    = mainCost;
     MiscCost    = miscCost;
 }