Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <array>
- #include <string>
- #include "campo.h"
- struct Menu {
- int dificulty;
- int pos;
- Campo * c;
- std::array<std::string, 3> lv_menu = { "Facil", "Médio", "Difícil" };
- Menu(Campo &c1, int pos1)
- : c(&c1), pos(pos1) {
- for(;;) {
- draw_on_campol(lv_menu);
- break;
- //input();
- }
- }
- void draw_on_campol(std::array<std::string, 3> &n) {
- int w = pos;
- for(int i = 0; i < 3; i++) {
- for(int z = 0; z < n[i].size(); z++) {
- c->campo[w + z] = n[i][z];
- }
- w += c->width + 1;
- }
- }
- //void input();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement