Пример #1
0
        protected override EBTStatus update_impl(Agent pAgent, EBTStatus childStatus)
        {
            OutOfControlType outOfControlType = ((ObjAgent)pAgent).GetOutOfControlType();
            OutOfControlType taunt            = OutOfControlType.Taunt;

            return((outOfControlType != taunt) ? EBTStatus.BT_FAILURE : EBTStatus.BT_SUCCESS);
        }
Пример #2
0
        protected override EBTStatus update_impl(Agent pAgent, EBTStatus childStatus)
        {
            OutOfControlType outOfControlType  = ((ObjAgent)pAgent).GetOutOfControlType();
            OutOfControlType outOfControlType2 = OutOfControlType.Terror;

            return((outOfControlType == outOfControlType2) ? EBTStatus.BT_SUCCESS : EBTStatus.BT_FAILURE);
        }
        protected override EBTStatus update_impl(Agent pAgent, EBTStatus childStatus)
        {
            OutOfControlType outOfControlType  = ((ObjAgent)pAgent).GetOutOfControlType();
            OutOfControlType outOfControlType2 = OutOfControlType.Taunt;
            bool             flag = outOfControlType == outOfControlType2;

            return((!flag) ? EBTStatus.BT_FAILURE : EBTStatus.BT_SUCCESS);
        }
Пример #4
0
 public OutOfControl(bool isOutOfControl = false, OutOfControlType outOfControlType = OutOfControlType.Null)
 {
     this.m_isOutOfControl   = isOutOfControl;
     this.m_outOfControlType = outOfControlType;
 }
Пример #5
0
 public void ResetOnUse()
 {
     this.m_isOutOfControl   = false;
     this.m_outOfControlType = OutOfControlType.Null;
 }