internal void SetUpScene(string name, Size size, Point location) { if (name.Contains("box")) { var box = new Box(size.Width, size.Height, name); //box.OnLocationChange += new PointDelegate(box_OnLocationChange); gw.AddObject(box, location.GetWorldFromScreen(size.Width)); } if (name.Contains("ai") || name.Contains("player")) { superDude dude = new superDude(size.Width, size.Height, name); //dude.OnLocationChange += new PointDelegate(dude_OnLocationChange); gw.AddObject(dude, location.GetWorldFromScreen(size.Width)); } }