public MinionMovingDecoyUnit(string name, int lifepoints, string status, MinionDecoyBoss ml, ChatMediator CM) { setName(name); setLifepoints(lifepoints); SetStatus(status); setMinionLeader(ml); setMediator(CM); }
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); }