/// <summary>
        /// Obtient les entités vivantes se trouvant dans la forme passée en paramètre.
        /// </summary>
        public EntityCollection GetAliveEntitiesIn(Shapes.Shape shape, EntityType type)
        {
            EntityCollection entitiesIn = new EntityCollection();

            foreach (var kvp in this)
            {
                if (shape.Intersects(kvp.Value.Shape) && !kvp.Value.IsDead && kvp.Value.Type.HasFlag(type))
                {
                    entitiesIn.Add(kvp.Key, kvp.Value);
                }
            }
            return(entitiesIn);
        }