pushing for zac
This commit is contained in:
11
ConsoleApp/Maps/IMapFactory.cs
Normal file
11
ConsoleApp/Maps/IMapFactory.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.Dynamic;
|
||||
|
||||
namespace ConsoleApp
|
||||
{
|
||||
public interface IMapFactory
|
||||
{
|
||||
int Height { get; }
|
||||
int Width { get; }
|
||||
SquareMap SquareMap { get; }
|
||||
}
|
||||
}
|
||||
29
ConsoleApp/Maps/MapFactory.cs
Normal file
29
ConsoleApp/Maps/MapFactory.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
namespace ConsoleApp
|
||||
{
|
||||
public class MapFactory : IMapFactory
|
||||
{
|
||||
private int _defaultHeight;
|
||||
private int _defaultWidth;
|
||||
public int Height { get; protected set; }
|
||||
public int Width { get; protected set; }
|
||||
|
||||
public MapFactory()
|
||||
{
|
||||
_defaultHeight = 0;
|
||||
_defaultWidth = 0;
|
||||
Height = _defaultHeight;
|
||||
Width = _defaultWidth;
|
||||
}
|
||||
|
||||
void CreateMaps(int height, int width)
|
||||
{
|
||||
Height = height;
|
||||
Width = width;
|
||||
}
|
||||
|
||||
void CreateMaps()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user