Exemplo n.º 1
0
 /// <summary>
 /// 新增技能:衝刺繪圖物件
 /// </summary>
 /// <param name="iconColor">繪製顏色</param>
 /// <param name="bindingSkill">綁定技能</param>
 public DrawSkillShotGun(Color iconColor, SkillBase bindingSkill = null)
 {
     Colors.SetColor("Icon", iconColor);
     Animation    = 0;
     BindingSkill = bindingSkill;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 由繪圖工具管理物件新增技能:衝刺繪圖物件
 /// </summary>
 /// <param name="drawColor">繪圖工具管理物件</param>
 /// <param name="bindingSkill">綁定技能</param>
 public DrawSkillShotGun(DrawColors drawColor, SkillBase bindingSkill = null)
     : base(drawColor)
 {
     Animation    = 0;
     BindingSkill = bindingSkill;
 }
Exemplo n.º 3
0
 /// <summary>
 /// 增加技能物件到活動集合內
 /// </summary>
 /// <param name="item">技能物件</param>
 public void Add(SkillBase item)
 {
     _Collection.Add(item);
     item.Binding(this, true);
 }
Exemplo n.º 4
0
 /// <summary>
 /// 判斷指定技能物件是否存在集合內
 /// </summary>
 /// <param name="item">技能物件</param>
 /// <returns>如果技能物件在集合中則為 true,否則為 false。</returns>
 public bool Contains(SkillBase item)
 {
     return(_Collection.Contains(item));
 }
Exemplo n.º 5
0
 /// <summary>
 /// 符合條件時要如何施放技能
 /// </summary>
 /// <param name="skill">技能</param>
 /// <returns>是否施放技能</returns>
 protected abstract bool Cast(SkillBase skill);