Ejemplo n.º 1
0
 public void Add(FallingObject fallingObject)
 {
     foreach (Pixel pixel in fallingObject.Body)
     {
         this.body.Add(pixel);
         levelElementsCount[pixel.Coordinate.Y]++;
     }
 }
Ejemplo n.º 2
0
 public void Add(FallingObject fallingObject)
 {
     foreach (Pixel pixel in fallingObject.Body)
     {
         this.body.Add(pixel);
         levelElementsCount[pixel.Coordinate.Y]++;
     }
 }
Ejemplo n.º 3
0
        public Field(FallingObject fallingObject, FallingObject nextFallingObject)
        {
            this.FallingObject         = fallingObject;
            this.TopLeftPlayGround     = new Point2D(4, 5);
            this.BottomRightPlayGround = new Point2D(Game.Width - 20, Game.Height - 5);

            this.Earth             = new Earth(this.TopLeftPlayGround, this.BottomRightPlayGround);
            this.Border            = new Border(this);
            this.NextFallingObject = new NextFallingObject(this, this.FallingObject);
            this.ControlsInfo      = new ControlsInfo(this);
            this.Score             = new Score(this);
            this.Clock             = new Clock(this);
        }
Ejemplo n.º 4
0
 public NextFallingObject(Field field, FallingObject fallingObject)
 {
     this.FallingObject = fallingObject;
     this.x             = field.BottomRightPlayGround.X;
     this.y             = field.TopLeftPlayGround.Y;
 }
Ejemplo n.º 5
0
 public NextFallingObject(Field field, FallingObject fallingObject)
 {
     this.FallingObject = fallingObject;
     this.x = field.BottomRightPlayGround.X;
     this.y = field.TopLeftPlayGround.Y;
 }
Ejemplo n.º 6
0
        public Field(FallingObject fallingObject, FallingObject nextFallingObject)
        {
            this.FallingObject = fallingObject;
            this.TopLeftPlayGround = new Point2D(4, 5);
            this.BottomRightPlayGround = new Point2D(Game.Width - 20, Game.Height - 5);

            this.Earth = new Earth(this.TopLeftPlayGround, this.BottomRightPlayGround);
            this.Border = new Border(this);
            this.NextFallingObject = new NextFallingObject(this, this.FallingObject);
            this.ControlsInfo = new ControlsInfo(this);
            this.Score = new Score(this);
            this.Clock = new Clock(this);
        }