void InitializeMonster(MonsterType m) { if (m == MonsterType.Empty) { return; } if (m == MonsterType.Slime) { Slime temp = new Slime(); temp.Start(); temp.Setmtype(MonsterType.Slime); Monster tempMonster = temp; magic.addMonster(tempMonster); } if (m == MonsterType.DoubleSwordMan) { DoubleSwordMan temp = new DoubleSwordMan(); temp.Start(); temp.Setmtype(MonsterType.DoubleSwordMan); Monster tempMonster = temp; magic.addMonster(tempMonster); } if (m == MonsterType.BigSpider) { BigSpider temp = new BigSpider(); temp.Start(); temp.Setmtype(MonsterType.BigSpider); Monster tempMonster = temp; magic.addMonster(tempMonster); } if (m == MonsterType.Vampire) { Vampire temp = new Vampire(); temp.Start(); temp.Setmtype(MonsterType.Vampire); Monster tempMonster = temp; magic.addMonster(tempMonster); } if (m == MonsterType.Boss_TurnMan) { Boss_TurnMan temp = new Boss_TurnMan(); temp.Start(); temp.Setmtype(MonsterType.Boss_TurnMan); Monster tempMonster = temp; magic.addMonster(tempMonster); } }