public Dnd() { view = new GameCanvas(gameWorld); view.Show(); //TODO why is the picturebox needed. mainGrid = new Cartesian(view, view.pictureBox); mainGrid.EnableHighlight = true; gameWorld.Add(mainGrid); //TODO have controls in mainGrid to control whether axes are drawn or not. gameWorld.Add(new CartesianAxes(view)); for (int i = 1; i < 10; i++) { Circle c = new Circle(new PointF(rnd.Next(400), rnd.Next(400)), rnd.Next(390) + 10); //if (i > 1) c.Visible = false; gameWorld.Add(c); } }
public CardTop() { view = new GameCanvas(gameWorld); view.Show(); Circle c = new Circle(); gameWorld.Add(c); Zone testZone = new Zone(); testZone.Name = "Bob"; testZone.Position = new System.Drawing.PointF(200, 100); Card testCard = new Card(); testCard.Name = "Ace of Spades"; testZone.Add(testCard); gameWorld.Add(testZone); }