Ejemplo n.º 1
0
        /// <summary>
        /// Generates a new arena with default settings.
        /// </summary>
        /// <param name="width">The width of the arena, in game units.</param>
        /// <param name="height">The height of the arena, in game units/</param>
        /// <returns>A new arena object, already added to the managed list.</returns>
        public static LoadableBattleArena Create(float width, float height)
        {
            LoadableBattleArena arena = new LoadableBattleArena(width, height, 40);

            Arenas.Add(arena);
            return(arena);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Generates a new arena with default settings.
 /// </summary>
 /// <param name="width">The width of the arena, in game units.</param>
 /// <param name="height">The height of the arena, in game units/</param>
 /// <returns>A new arena object, already added to the managed list.</returns>
 public static LoadableBattleArena Create(float width, float height)
 {
     LoadableBattleArena arena = new LoadableBattleArena(width, height, 40);
     Arenas.Add(arena);
     return arena;
 }