Example #1
0
        public Segment(int x, int dir, Coords Coord)
            : base()
        {

            this.Coord = Coord;
            type = x;
            this.Location = new System.Drawing.Point(Coord.x, Coord.y);
            this.Size = new System.Drawing.Size(10, 10);
            this.Name = "Grid_" + Coord.x + "x" + Coord.y;
            // Console.WriteLine(this.Name +"  " + x.ToString() + "   " + dir.ToString() );
            //this.TabIndex = 0;
            // this.Controls.Add(this);
            ChangeDirection(dir);


        }
Example #2
0
 public Game(Coords Location, Coords Size)
 {
     GameLocation = Location;
     GameSize = Size;
 }
Example #3
0
 static public void CoordsCopy(Coords c1, Coords c2)
  {
      c1.x = c2.x;
      c1.y = c2.y;
  }
Example #4
0
 public Segment() : base() { this.Coord = new Coords(); }