Esempio n. 1
0
 public BallManager(Space space, ILayerable layer)
 {
     this.layer = layer;
     this.space = space;
     this.balls = layer.Balls;
     ballsDirections = new Dictionary<string, Direction>();
     SetInitialDirections();
 }
Esempio n. 2
0
        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;
        }