public CustomRegistry() { Board = new CustomBoard(10, 10); Initializer = new BoardInitializer(); ActionManager = new BoardActionManager(Board, (BoardInitializer)Initializer); Notifier = new BoardNotifier(Board); ProccessUserInput = new NotifyingInput(Notifier); }
public BoardActionManager(Board Board, BoardInitializer BoardInitializer) { allowedActions = new int[] { 1, 2, 3 }; drawDelegate = null; board = Board; ActionDelegates = new Draw[] { DrawPoint, DrawHorizontalLine, DrawVerticalLine }; drawDelegate = BoardInitializer.DrawInitBoard; }