public BallManager(Space space, ILayerable layer) { this.layer = layer; this.space = space; this.balls = layer.Balls; ballsDirections = new Dictionary<string, Direction>(); SetInitialDirections(); }
public Model(int HIGH, int LONG) { this.layer = LayoutInitializer.Initialize(HIGH, LONG); this.space = new Space(HIGH, LONG, layer); this.ballManager = new BallManager(space, layer); ballManager.SendChanges += OnShow; SendMove += space.OnSendMove; }