Beispiel #1
0
 /// <summary>
 /// Create a tile
 /// </summary>
 /// <param name="row">Zero-based row of the tile</param>
 /// <param name="column">Zero-based column of the tile</param>
 /// <param name="engine">Instance of the game engine</param>
 public Tile(int row, int column, Game engine)
 {
     this.row    = row;
     this.column = column;
     gameEngine  = engine;
     engine.AddTile(this);
     Size     = tileSize;
     Location = new Point(startPoint.X + (tileSize.Width + 1) * column, startPoint.Y + (tileSize.Height + 1) * row);
 }