public PlayerController(Point Startpos, FieldController f) { Field = f; Model = new PlayerModel(); Model.Coordinates = Startpos; View = new PlayerView(this); }
public FieldView(FieldController fldContrllr) { this.SetStyle(ControlStyles.SupportsTransparentBackColor, true); InitializeComponent(); Controller = fldContrllr; addTiles(); }
protected TileController(bool isSafe, Point coord, FieldController fieldc) { Initialize(isSafe, coord, fieldc); }
public TileController(Point coord, FieldController fieldc) { Initialize(true, coord, fieldc); }
private void Initialize(bool isSafe, Point coord, FieldController fieldc) { Field = fieldc; Model = new TileModel(); Model.revealed = false; Model.safeTile = isSafe; Model.coordinates = coord; Model.disabled = false; View = new TileView(this); }
public ExitController(Point coord, FieldController fieldc) : base(true, coord, fieldc) { }
public MineController(Point coord,FieldController fieldc) : base(false, coord, fieldc) { }