private void menuItem_Selected(object sender, EventArgs e) { if (sender == InitialPrice) { Process.Start(@"Content\resourceListCostDescript.xml"); } if (sender == Continue) { int ses = dbp.getSession(); dbp.Startresourceadd(); dbp.startPlanetAdd(); dbp.AddtoSession(); dbp.AddResourcetoPlanet(); GameRef.board.setSession(ses); StateManager.PushState(GameRef.AdminScreen); } }
private void menuItem_Selected(object sender, EventArgs e) { if (sender == startGame) { StateManager.PushState(GameRef.AdminScreen, ""); // this is to add resources to the new game // this adds a delay into the start up may need to change this or thread it dbp.Startresourceadd(); dbp.startPlanetAdd(); dbp.AddtoSession(dbp.newSession()); dbp.AddResourcetoPlanet(); } if (sender == loadGame) { StateManager.PushState(GameRef.GamePlayScreen, ""); } if (sender == exitGame) { GameRef.Exit(); } }
public void AddingResourcetoPlanets() { Assert.IsTrue(dbp.AddResourcetoPlanet()); }