Example #1
0
        /// <summary>
        /// 特性基礎物件初始化
        /// </summary>
        public PropertyBase()
        {
            Target       = new TargetSet();
            DurationTime = new CounterObject(-1);

            Target.ObjectChanged += (s, o, n) => { OnTargetObjectChanged(o, n); };
        }
Example #2
0
 /// <summary>
 /// 基本移動物件建構式
 /// </summary>
 /// <param name="Target">追蹤目標</param>
 /// <param name="weight">阻力,最終移動速度會受到此值影響(finalSpeed = speeed/Weight)</param>
 /// <param name="speed">總體移動速度最大值(排除阻力影響)</param>
 /// <param name="offsetsLimit">移動調整值列表最大數量</param>
 public MoveBase(ITargetability target, float weight, float speed, int offsetsLimit)
 {
     Offsets               = new List <PointF>();
     OffsetsLimit          = offsetsLimit;
     Resistance            = weight;
     Speed                 = speed;
     Target                = new TargetSet(target);
     Target.ObjectChanged += (s, o, n) => { OnTargetObjectChanged(o, n); };
 }
Example #3
0
 public SkillBase()
 {
     Target = new TargetSet();
 }
Example #4
0
 public LayoutSet()
 {
     Depend = new TargetSet();
     Depend.ObjectChanged += (s, o, n) => { OnDependObjectChanged(o, n); };
 }