public void AddObject(MapObject ob) { Objects.Add(ob); switch (ob.Race) { case ObjectType.Player: Players.Add((PlayerObject)ob); break; case ObjectType.Item: break; case ObjectType.NPC: NPCs.Add((NPCObject)ob); break; case ObjectType.Spell: break; case ObjectType.Monster: MonsterObject mob = (MonsterObject)ob; if (mob.MonsterInfo.IsBoss) { Bosses.Add(mob); } break; } }
public void AddBoss(Fighter boss) { Bosses.Add(boss); }