예제 #1
0
 public DefendModeData(DefendModeType type, int value, int currentValue, bool isKey)
 {
     this.type         = type;
     this.targetValue  = value;
     this.currentValue = currentValue;
     this.uniqueID     = 0;
     this.isKey        = isKey;
 }
예제 #2
0
 public DefendModeData(int uniqueID, bool isKey)
 {
     this.type         = DefendModeType.Certain;
     this.targetValue  = 0;
     this.currentValue = 0;
     this.uniqueID     = uniqueID;
     this.isKey        = isKey;
 }
예제 #3
0
        public void AddModeData(DefendModeType modeType, int targetValue, int currentValue, bool isKey = false)
        {
            DefendModeData item = new DefendModeData(modeType, targetValue, currentValue, isKey);

            this._defendModeDataList.Add(item);
            if (isKey)
            {
                this.RefreshDisplay(item, 0);
            }
        }
예제 #4
0
 public LDEvtWaitLevelDefendState(string typeStr, double value)
 {
     this.defendModeType = (DefendModeType)((int)Enum.Parse(typeof(DefendModeType), typeStr));
     if ((this.defendModeType == DefendModeType.Single) || (this.defendModeType == DefendModeType.Group))
     {
         this.targetValue = (int)value;
         this.uniqueID    = 0;
     }
     else if (this.defendModeType == DefendModeType.Certain)
     {
         this.targetValue = 0;
         this.uniqueID    = (int)value;
     }
     else
     {
         this.targetValue = (int)value;
         this.uniqueID    = 0;
     }
 }
예제 #5
0
 public EvtLevelDefendState(DefendModeType defendModeType, int targetValue)
 {
     this.modeType    = defendModeType;
     this.targetValue = targetValue;
     this.uniqueID    = 0;
 }
예제 #6
0
 public EvtLevelDefendState(int uniqueID)
 {
     this.modeType    = DefendModeType.Certain;
     this.targetValue = 0;
     this.uniqueID    = uniqueID;
 }