Esempio n. 1
0
 /// <summary>
 /// AIのコンストラクタ
 /// </summary>
 /// <param name="user">AIを使用するIBattleableキャラクター</param>
 /// <param name="acitiveSkills">userが使用するActiveSkillSet</param>
 /// <param name="reactionSkills">userが使用するReactionSkillSet</param>
 public Coward(IBattleable user, ActiveSkillSet acitiveSkills, ReactionSkillSet reactionSkills)
 {
     this.user           = user;
     this.activeSkills   = acitiveSkills;
     this.reactionSkills = reactionSkills;
 }
Esempio n. 2
0
 public IEnemyAI build(IBattleable bal, ActiveSkillSet activeSKills, ReactionSkillSet passiveSkills)
 {
     return(new Coward(bal, activeSKills, passiveSkills));
 }
 /// <summary>
 /// AIをidから取得します
 /// </summary>
 /// <returns>オーダーされたAI</returns>
 /// <param name="id">取得したいAIのID</param>
 /// <param name="user">AIを設定したいIBattleableオブジェクト</param>
 /// <param name="activeSkills">userのActiveSkillSet.</param>
 /// <param name="reactionSkills">userのReactionSkillSet.</param>
 public IEnemyAI getAiFromId(int id, IBattleable user, ActiveSkillSet activeSkills, ReactionSkillSet reactionSkills)
 {
     foreach (IEnemyAIBuilder builder in summarizingAI)
     {
         if (builder.getId() == id)
         {
             return(builder.build(user, activeSkills, reactionSkills));
         }
     }
     throw new ArgumentException("invalid aiId");
 }