コード例 #1
0
ファイル: Earth.cs プロジェクト: pripadai/Deyan-Projects
 public void Add(FallingObject fallingObject)
 {
     foreach (Pixel pixel in fallingObject.Body)
     {
         this.body.Add(pixel);
         levelElementsCount[pixel.Coordinate.Y]++;
     }
 }
コード例 #2
0
ファイル: Earth.cs プロジェクト: pripadai/Deyan-Projects
 public void Add(FallingObject fallingObject)
 {
     foreach (Pixel pixel in fallingObject.Body)
     {
         this.body.Add(pixel);
         levelElementsCount[pixel.Coordinate.Y]++;
     }
 }
コード例 #3
0
ファイル: Field.cs プロジェクト: pripadai/Deyan-Projects
        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);
        }
コード例 #4
0
ファイル: Field.cs プロジェクト: pripadai/Deyan-Projects
 public NextFallingObject(Field field, FallingObject fallingObject)
 {
     this.FallingObject = fallingObject;
     this.x             = field.BottomRightPlayGround.X;
     this.y             = field.TopLeftPlayGround.Y;
 }
コード例 #5
0
ファイル: Field.cs プロジェクト: pripadai/Deyan-Projects
 public NextFallingObject(Field field, FallingObject fallingObject)
 {
     this.FallingObject = fallingObject;
     this.x = field.BottomRightPlayGround.X;
     this.y = field.TopLeftPlayGround.Y;
 }
コード例 #6
0
ファイル: Field.cs プロジェクト: pripadai/Deyan-Projects
        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);
        }