Beispiel #1
0
 /// <summary>
 /// Creates a map
 /// </summary>
 /// <param name="game">The instance of League</param>
 public Map(League game) : base(game)
 {
     DrawOrder = 0;
     Engine    = game;
 }
Beispiel #2
0
 /// <summary>
 /// Creates a Region from raw data
 /// </summary>
 /// <param name="game">The instance of league</param>
 /// <param name="name">The name of the region</param>
 /// <param name="x">The x coord of the region</param>
 /// <param name="y">The y coord of the region</param>
 /// <param name="width">The width of the region</param>
 /// <param name="height">The height of the region</param>
 public Region(League game, string name, int x, int y, int width, int height)
     : this(game, name, new Rectangle(x, y, width, height))
 {
 }
Beispiel #3
0
 /// <summary>
 /// Creates a new Unit
 /// </summary>
 /// <param name="game">The instance of Leauge</param>
 /// <param name="type">The Type of unit</param>
 /// <param name="pos">The position to create the Unit</param>
 /// <param name="player">The player to whom this Unit belongs</param>
 public Unit(League game, UnitType type, Vector3 pos, Player player) : this(game, type, new Vector2(pos.X, pos.Z), player)
 {
 }
Beispiel #4
0
 /// <summary>
 /// Creates a Region from a rectanngle
 /// </summary>
 /// <param name="game">The instance of League</param>
 /// <param name="name">The name of the region</param>
 /// <param name="rect">The defining rectangle</param>
 public Region(League game, string name, Rectangle rect) : base(game)
 {
     Engine = game;
     Name   = name;
     Rect   = rect;
 }
Beispiel #5
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (League game = new League()) {
         game.Run();
     }
 }