public BurstABubble() { m_thingsInFlight = new Projectile[MAX_THINGS_IN_FLIGHT]; m_mnuMain = new MenuCUI(this); // Create a MenuCUI object and pass in a reference to this BurstABubble object // This will allow the MenuCUI to call methods here in order to create rocks, fireworks, etc, etc. // CUI == Console User Interface. It means the "console", where we use Console.WriteLine to print messages // to the user and get input when the user types // The alternative is a "GUI", or "Graphical User Interface", which has windows, menus, and lets the user // use a mouse. GUIs are nice, but much, much more complicated to program so we're skipping that :) boundaries = new PlayingSpace(0, 100, 0, 100); m_bubbles = new Bubble[4]; }
override public void GetUserInitInfo() { m_xSpeed = MenuCUI.GetValidUserInput("Initial X speed? (1-10)", 1, 11); m_ySpeed = MenuCUI.GetValidUserInput("Initial Y speed? (1-10)", 1, 11); m_Detonate = MenuCUI.GetValidUserInput("Rounds Until Detonation (1-6)", 1, 7) + 1; }
override public void GetUserInitInfo() { m_xSpeed = MenuCUI.GetValidUserInput("Initial X speed? (1-10)", 1, 11); m_ySpeed = MenuCUI.GetValidUserInput("Initial Y speed? (1-10)", 1, 11); }