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); }
public Game(Coords Location, Coords Size) { GameLocation = Location; GameSize = Size; }
static public void CoordsCopy(Coords c1, Coords c2) { c1.x = c2.x; c1.y = c2.y; }
public Segment() : base() { this.Coord = new Coords(); }