|
Stock Market Simulator main e8c3612
A game that provides a realistic stock buying experience with unpredictable trends to test investment strategies.
|
(Declarations of) human-computer interactions functions. More...
#include "draw.h"#include "format.h"#include "graph.h"#include "stock.h"#include <ios>#include <iostream>#include <limits>#include <tuple>#include <vector>

Go to the source code of this file.
Functions | |
| void | advanceConfirmation (int row, int col, bool &advance, bool &flush) |
| void | buyStocks (int row, int col, float &balance, float tax, std::vector< Stock > &stocks, bool &flush) |
| int | integerInput (int row, int col, const std::string &message) |
| void | optionsInput (int row, int col, float &balance, float tax, std::vector< Stock > &stocks, const std::vector< Stock_event > &events, bool &viewMode, bool &advance, bool &overlayEvent, bool &flush, bool &gameQuit) |
| void | quitConfirmation (int row, int col, bool &flush, bool &gameQuit) |
| void | sellStocks (int row, int col, float &balance, float tax, std::vector< Stock > &stocks, bool &flush) |
| void | toggleView (bool &viewMode, bool &flush) |
(Declarations of) human-computer interactions functions.
Definition in file controls.h.
| void advanceConfirmation | ( | int | row, |
| int | col, | ||
| bool & | advance, | ||
| bool & | flush ) |
Definition at line 154 of file controls.cpp.
References setCursorPosition().
Referenced by optionsInput().


| void buyStocks | ( | int | row, |
| int | col, | ||
| float & | balance, | ||
| float | tax, | ||
| std::vector< Stock > & | stocks, | ||
| bool & | flush ) |
Definition at line 90 of file controls.cpp.
References balance, integerInput(), setCursorPosition(), time::sleep(), and sleepMedium.
Referenced by optionsInput().


| int integerInput | ( | int | row, |
| int | col, | ||
| const std::string & | message ) |
Definition at line 71 of file controls.cpp.
References setCursorPosition(), time::sleep(), and sleepMedium.
Referenced by buyStocks(), main(), and sellStocks().


| void optionsInput | ( | int | row, |
| int | col, | ||
| float & | balance, | ||
| float | tax, | ||
| std::vector< Stock > & | stocks, | ||
| const std::vector< Stock_event > & | events, | ||
| bool & | viewMode, | ||
| bool & | advance, | ||
| bool & | overlayEvent, | ||
| bool & | flush, | ||
| bool & | gameQuit ) |
Definition at line 17 of file controls.cpp.
References advanceConfirmation(), balance, buyStocks(), listEvents(), quitConfirmation(), sellStocks(), setCursorPosition(), time::sleep(), sleepMedium, and toggleView().
Referenced by main().


| void quitConfirmation | ( | int | row, |
| int | col, | ||
| bool & | flush, | ||
| bool & | gameQuit ) |
Definition at line 166 of file controls.cpp.
References setCursorPosition().
Referenced by optionsInput().


| void sellStocks | ( | int | row, |
| int | col, | ||
| float & | balance, | ||
| float | tax, | ||
| std::vector< Stock > & | stocks, | ||
| bool & | flush ) |
Definition at line 120 of file controls.cpp.
References balance, integerInput(), setCursorPosition(), time::sleep(), and sleepMedium.
Referenced by optionsInput().


| void toggleView | ( | bool & | viewMode, |
| bool & | flush ) |
Definition at line 149 of file controls.cpp.
Referenced by optionsInput().
