public AbstractCloneableMinion BuildMinion(string minionType, string name, int lifepoints, string status, AbstractMinionLeader ml, ChatMediator CM)
        {
            switch (minionType)
            {
            case "Fixer":
            {
                minion = new MinionFixerUnit(name, lifepoints, status, (MinionFixerBoss)ml, CM);
                break;
            }

            case "StandingDecoy":
            {
                minion = new MinionStandingDecoyUnit(name, lifepoints, status, (MinionDecoyBoss)ml, CM);
                break;
            }

            case "MovingDecoy":
            {
                minion = new MinionMovingDecoyUnit(name, lifepoints, status, (MinionDecoyBoss)ml, CM);
                break;
            }
            }
            makeBody();
            if (needHands())
            {
                addHands();
            }
            if (needLegs())
            {
                addLegs();
            }
            if (needRollerBlades())
            {
                addRollerblades();
            }
            if (needShield())
            {
                addShield();
            }
            if (needTools())
            {
                addTools();
            }
            return(minion);
        }
示例#2
0
 public override void removeMinion(AbstractCloneableMinion M)
 {
     minions.Remove(M);
 }
示例#3
0
 public abstract void addMinion(AbstractCloneableMinion m);
示例#4
0
 public abstract void removeMinion(AbstractCloneableMinion M);
示例#5
0
 public override void removeMinion(AbstractCloneableMinion m)
 {
     minions.Remove((MinionFixerUnit)m);
 }
示例#6
0
 public abstract void sendMessage(AbstractCloneableMinion sender, string msg);
示例#7
0
 public void Remove(AbstractCloneableMinion m)
 {
     minions.Remove(m);
 }
示例#8
0
 public void Add(AbstractCloneableMinion m)
 {
     minions.Add(m);
 }
示例#9
0
 public override void addMinion(AbstractCloneableMinion minion)
 {
     minions.Add(minion);
 }