|
TheCOSCGameProject
1.0
|
Provides functions for managing the game menu and related actions. More...
#include <iostream>#include <vector>#include <string>#include <iomanip>

Go to the source code of this file.
Functions | |
| void | displayIntro (int delayTime, const std::string &color) |
| Displays the introductory text for the game. More... | |
| void | Displayj () |
| Displays the game menu. More... | |
| void | StartGame (const std::string &color) |
| Starts a new game. More... | |
| void | LoadSavedGame () |
| Loads a saved game. More... | |
| void | DisplayInstructionsText () |
| Displays the game instructions. More... | |
| void | Accessiblity (int &delayTime, std::string &color) |
| Manages accessibility options. More... | |
| std::string | getColor (int colorChoice, const std::string &color) |
| Get color from user for menu. More... | |
| void | DisplayOption () |
Provides functions for managing the game menu and related actions.
This file contains declarations for functions that handle the display of the game's introductory text, the main menu, game instructions, and accessibility options. It also includes functions for starting a new game and loading a saved game.
| void Accessiblity | ( | int & | delayTime, |
| std::string & | color | ||
| ) |
Manages accessibility options.
| delayTime | Reference to the time delay between each printed character in milliseconds. |
| color | Reference to the color code for the text. |
This function allows the player to adjust accessibility settings, such as text color and delay time for text display.
Manages accessibility options.
| delayTime | Reference to the delay time between printing each character. |
| color | Reference to the color code for the text. |
This function allows the player to adjust text speed and color for better accessibility. Changes are applied immediately, and the player can return to the main menu at any time.
| void DisplayInstructionsText | ( | ) |
Displays the game instructions.
This function shows the instructions on how to play the game, including controls and objectives.
Displays the game instructions.
This function prints the instructions for playing the Valeris game and waits for the user to press Enter before clearing the screen.
| void displayIntro | ( | int | delayTime, |
| const std::string & | color | ||
| ) |
Displays the introductory text for the game.
| delayTime | The time delay between each printed character in milliseconds. |
| color | The color code for the text. |
Displays the introductory text for the game.
| delayTime | The delay time between printing each character. |
| color | The color code for the text. |
The introduction is read from a file and printed with a delay and color for dramatic effect.
| void Displayj | ( | ) |
Displays the game menu.
This function shows the main menu of the game, allowing the player to choose between starting a new game, loading a saved game, viewing instructions, or accessing the accessibility options.
Displays the game menu.
This function displays the main menu with options for starting a new game, loading a saved game, viewing instructions, adjusting accessibility settings, or exiting the game.
| void DisplayOption | ( | ) |
| std::string getColor | ( | int | colorChoice, |
| const std::string & | color | ||
| ) |
Get color from user for menu.
| colorChoice | the color choice the user chose. |
| color | Reference to the old color code for the text. |
This function allows the player to select and change the color of the text
| void LoadSavedGame | ( | ) |
Loads a saved game.
This function retrieves and resumes a previously saved game session.
Loads a saved game.
This function simulates loading a saved game. The actual loading functionality is not implemented.
| void StartGame | ( | const std::string & | color | ) |
Starts a new game.
| color | The color of the text |
This function initializes a new game session, setting up the necessary game state.
Starts a new game.
This function creates an instance of the ValerisGame class and begins the game.
1.8.13