Stock Market Simulator main e8c3612
A game that provides a realistic stock buying experience with unpredictable trends to test investment strategies.
Loading...
Searching...
No Matches
draw.h
Go to the documentation of this file.
1/// @file draw.h
2/// Function declarations for drawing/display of various elements
3/*
4This program is free software: you can redistribute it and/or modify it under the
5terms of the GNU Lesser General Public License as published by the Free Software
6Foundation, either version 3 of the License, or (at your option) any later version.
7
8This program is distributed in the hope that it will be useful, but WITHOUT ANY
9WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
10PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
11
12You should have received a copy of the GNU Lesser General Public License along with this
13program. If not, see <https://www.gnu.org/licenses/>.
14*/
15#ifndef DRAW_H
16#define DRAW_H
17
18#include "format.h"
19#include "stock.h"
20
21#include <iostream>
22#include <string>
23#include <tuple> // for std::ignore
24#include <vector>
25
26void drawLogo(int row, int col);
27
28void drawRoundInfo(
29 int row, int col, int round, float balance, std::string player, float indexHSI);
30
31void drawEventBar(int row, int col);
32
33void listEvents(int row, int col, std::vector<Stock_event> events);
34
35void drawButton(int row, int col);
36
37#endif
void drawEventBar(int row, int col)
Definition draw.cpp:73
void listEvents(int row, int col, std::vector< Stock_event > events)
Definition draw.cpp:90
void drawButton(int row, int col)
Definition draw.cpp:156
void drawRoundInfo(int row, int col, int round, float balance, std::string player, float indexHSI)
Definition draw.cpp:52
void drawLogo(int row, int col)
Definition draw.cpp:19
Header file for the ANSI Escape code related functions.
float balance
Player's balance.
Definition main.cpp:68
Declaration of the Stock class.