-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrender_api — tekstowy.cpp
487 lines (433 loc) · 32 KB
/
render_api — tekstowy.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
#include <string>
#include <Windows.h>
#include <time.h>
#include <iostream>
#include "dziedziczace.h"
#include "render_api.h"
#pragma warning(disable:4996)
using namespace std;
void render_api::Czyszczenie_Bufora(void)//czyszczenie bufora
{
}
render_api::render_api() {
}
void render_api::pudlo(int typ) {
if (typ == 0 )
printf("\n\x1B[91m Pud\210o !\033[0m\n");
else if (typ==2)
printf("\nStrzela\210e\230 ju\230 w to miejsce ! Strata kolejki\n");
}
void render_api::przekaż_komputer() {
Sleep(2000);
for (int i = 0; i < 3; i++)//odczekanie 3 sekund aby gracze mogli sobie przekazac komputer
{
system("cls");
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n");
przerwy(32); printf("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(32); printf("\xba \xba\n");
przerwy(32); printf("\xba Przeka\276 komputer drugiemu graczowi ! %d \xba\n", 3 - i);
przerwy(32); printf("\xba \xba\n");
przerwy(32); printf("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
Sleep(1000);
}
system("cls");//czyszczenie ekranu
}
void render_api::podaj_nick() {
system("cls");
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n");
przerwy(32); printf("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(32); printf("\xba \xba\n");
przerwy(32); printf("\xba Podaj sw\242j nick(bez spacji): \xba\n");
przerwy(32); printf("\xba \xba\n");
przerwy(32); printf("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
przerwy(50);
}
void render_api::komputer_ustawia_statki() {
system("cls");//czyszczenie ekranu
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
przerwy(35); printf("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(35); printf("\xba \xba\n");
przerwy(35); printf("\xba Komputer ustawia statki \xba\n");
przerwy(35); printf("\xba \xba\n");
przerwy(35); printf("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
}
void render_api::clear_screen() {
system("cls");//czyszczenie ekranu
}
void render_api::ruch_wykonuje_komputer() {
Sleep(2000);
system("cls");//czyszczenie ekranu
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
przerwy(35); printf("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(35); printf("\xba \xba\n");
przerwy(35); printf("\xba Ruch wykonuje \033[91mkomputer\033[0m! \xba\n");
przerwy(35); printf("\xba \xba\n");
przerwy(35); printf("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
Sleep(1000);
system("cls");//czyszczenie ekranu
}
void render_api::podaj_nick2() {
printf("Podaj sw\242j nick(bez spacji):");
}
void render_api::błędny_nick() {
system("cls");
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n");
przerwy(6); printf("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(6); printf("\xba \xba\n");
przerwy(6); printf("\xba Poda\210e\230 b\210\251dnie sw\242j nick(Sprawd\253 czy Twoj nick ma max 20 znak\242w i jest bez spacji). Spr\242buj ponownie! \xba\n");
przerwy(6); printf("\xba \xba\n");
przerwy(6); printf("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
przerwy(50);
while (getchar() != '\n') {}//czyszczenie bufora
}
void render_api::trafienie() {
printf("\n \x1B[92mTrafienie !\033[0m\n");
}
void render_api::main_menu() {
przerwy(40); cout << ("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(40); cout << ("\xba \033[91m-\033[93m-\033[92m-\033[96m-\033[36m-\033[95m-\033[0m STATKI \033[95m-\033[36m-\033[96m-\033[92m-\033[93m-\033[91m-\033[0m \xba\n");
przerwy(40); cout << ("\xba \xba\n");
przerwy(40); cout << ("\xba 1.Nowa gra \xba\n");
przerwy(40); cout << ("\xba 2.Wczytaj gr\251 \xba\n");
przerwy(40); cout << ("\xba 3.Instrukcja \xba\n");
przerwy(40); cout << ("\xba 4.Zako\344cz program \xba\n");
przerwy(40); cout << ("\xba \xba\n");
przerwy(40); cout << ("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
przerwy(50); cout << "Tw\242j wyb\242r:\t";
}
void render_api::opcja_nie_istnieje() {
cout << "\nNiestety taka opcja nie istnieje. Spr\242buj ponownie ! :)";
Czyszczenie_Bufora();//funkcja czyszczaca bufor
printf("\nTw\242j wyb\242r:\t");
}
void render_api::niestety_nie_ma_takiej_opcji() {
system("cls");//czyszczenie ekranu
cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n";
przerwy(35); cout << ("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(35); cout << ("\xba \xba\n");
przerwy(35); cout << ("\xba Niestety nie ma takiej opcji. Spr\242buj ponownie! \xba\n");
przerwy(35); cout << ("\xba \xba\n");
przerwy(35); cout << ("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
przerwy(50); printf("Tw\242j wyb\242r:\t");
while (getchar() != '\n') {}
}
void render_api::wybor_typu_gry() {
for (int i = 0; i < 10; i++)
cout << ("\n");
przerwy(40); cout << ("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(40); cout << ("\xba \033[91m-\033[93m-\033[92m-\033[96m-\033[36m-\033[95m-\033[0m STATKI \033[95m-\033[36m-\033[96m-\033[92m-\033[93m-\033[91m-\033[0m \xba\n");
przerwy(40); cout << ("\xba \xba\n");
przerwy(40); cout << ("\xba 1.Gra z komputerem \xba\n");
przerwy(40); cout << ("\xba 2.Gra z innym graczem \xba\n");
przerwy(40); cout << ("\xba 3.Wyjd\253 \xba\n");
przerwy(40); cout << ("\xba \xba\n");
przerwy(40); cout << ("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
przerwy(50); cout << "Tw\242j wyb\242r:\t";
}
void render_api::error() {
system("cls");
cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n";
przerwy(45); cout << ("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(45); cout << ("\xba \xba\n");
przerwy(45); cout << ("\xba \xba\n");
przerwy(45); cout << ("\xba B\210\245d krytyczny ! \xba\n");
przerwy(45); cout << ("\xba \xba\n");
przerwy(45); cout << ("\xba \xba\n");
przerwy(45); cout << ("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
przerwy(45);
}
void render_api::instrukcja() {
for (int i = 0; i < 5; i++)
cout << ("\n");
przerwy(20); cout << ("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(20); cout << ("\xba \033[91m-\033[93m-\033[92m-\033[96m-\033[36m-\033[95m-\033[0m STATKI \033[95m-\033[36m-\033[96m-\033[92m-\033[93m-\033[91m-\033[0m \xba\n");
przerwy(20); cout << ("\xba \xba\n");
przerwy(20); cout << ("\xba \033[92mTwoja plansza:\033[0m \xba\n");
przerwy(20); cout << ("\xba 1. Oznaczenia '\033[92m1-4\033[0m' informuj\245 gdzie stoj\245 oraz ilu masztowe s\245 Twoje statki \xba\n");
przerwy(20); cout << ("\xba 2. Symbol '\033[92m.\033[0m' oznacza miejsce spud\210owanego strza\210u przeciwnika \xba\n");
przerwy(20); cout << ("\xba 3. Znak '\033[91mx\033[0m' symbolizuje trafienie Twojego statku przez przeciwnika \xba\n");
przerwy(20); cout << ("\xba \xba\n");
przerwy(20); cout << ("\xba \033[91mPlansza przeciwnika:\033[0m \xba\n");
przerwy(20); cout << ("\xba 1. Oznaczenia '\033[92m1-4\033[0m' informuj\245 w ilu masztowy statek trafi\210e\230 \xba\n");
przerwy(20); cout << ("\xba 2. Symbol '\033[91m.\033[0m' oznacza spud\210owany strza\210 \xba\n");
przerwy(20); cout << ("\xba \xba\n");
przerwy(20); cout << ("\xba \033[93mInformacje og\242lne:\033[0m \xba\n");
przerwy(20); cout << ("\xba 1. Gr\251 wygrywa gracz, kt\242ry jako pierwszy zatopi wszystkie statki \xba\n");
przerwy(20); cout << ("\xba przeciwnika: cztery statki 1 masztowe, trzy statki dwumasztowe, \xba\n");
przerwy(20); cout << ("\xba dwa statki trzymasztowe, jeden statek czteromasztowy \xba\n");
przerwy(20); cout << ("\xba 2. Opcja zapisania gry pojawia si\251 co 4 tury \xba\n");
przerwy(20); cout << ("\xba 3. Statki nie mog\245 znajdowa\206 si\251 na planszy obok siebie \xba\n");
przerwy(20); cout << ("\xba \xba\n");
przerwy(20); cout << ("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
przerwy(45); system("PAUSE");
}
void render_api::podaj_nazwę_save() {
cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n";
przerwy(20); cout << ("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(20); cout << ("\xba \xba\n");
przerwy(20); cout << ("\xba \xba\n");
przerwy(20); cout << ("\xba Podaj nazw\251 pliku z zapisem gry: \xba\n");
przerwy(20); cout << ("\xba \xba\n");
przerwy(20); cout << ("\xba \xba\n");
przerwy(20); cout << ("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
przerwy(55);
}
void render_api::save_error() {
system("cls");
cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n";
przerwy(5); cout << ("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(5); cout << ("\xba \xba\n");
przerwy(5); cout << ("\xba \xba\n");
przerwy(5); cout << ("\xba Niestety wyst\245pi\210 \033[91mb\210\245d\033[0m. Upewnij si\251, ze nie u\276y\210e\230 \033[93mspacji\033[0m lub nazwa pliku nie jest zbyt d\210uga(max 100 znak\242w)! \xba\n");
przerwy(5); cout << ("\xba \xba\n");
przerwy(5); cout << ("\xba \xba\n");
przerwy(5); cout << ("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
Sleep(5000);
system("cls");
render_api::Czyszczenie_Bufora();
render_api::podaj_nazwę_save();
}
void render_api::save_read_error() {
system("cls");//czyszczenie ekranu
cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n";
przerwy(12); cout << ("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(12); cout << ("\xba \xba\n");
przerwy(12); cout << ("\xba \xba\n");
przerwy(12); cout << ("\xba Niestety nie uda\210o si\251 otworzy\206 pliku o podanej nazwie ! \xba\n");
przerwy(12); cout << ("\xba \xba\n");
przerwy(12); cout << ("\xba \xba\n");
przerwy(12); cout << ("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
Sleep(2000);
system("cls");//czyszczenie ekranu
}
void render_api::plik_uszkodzony() {
system("cls");
cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n";
przerwy(25); cout << ("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(25); cout << ("\xba \xba\n");
przerwy(25); cout << ("\xba \xba\n");
przerwy(25); cout << ("\xba Plik jest \033[91muszkodzony\033[0m. Niestety nie uda\210o sie wczyta\206 stanu gry \xba\n");
przerwy(25); cout << ("\xba \xba\n");
przerwy(25); cout << ("\xba \xba\n");
przerwy(25); cout << ("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
Sleep(1000);
}
void render_api::thx_4_playing() {
system("cls");
cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n";
przerwy(42); cout << ("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(42); cout << ("\xba \xba\n");
przerwy(42); cout << ("\xba Thanks 4 playing \033[91m<3\033[0m \xba\n");
przerwy(42); cout << ("\xba Mateusz Je\276ewski \xba\n");
przerwy(42); cout << ("\xba \x9Dukasz Czeremcha \xba\n");
przerwy(42); cout << ("\xba \xba\n");
przerwy(42); cout << ("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
przerwy(42); system("PAUSE");
}
void render_api::czy_zapisac_gre() {
system("cls");//czyszczenie ekranu
cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n";
przerwy(35); cout << ("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(35); cout << ("\xba \xba\n");
przerwy(35); cout << ("\xba Czy chcesz zapisa\206 gr\251 i wyj\230\206 ? \xba\n");
przerwy(35); cout << ("\xba \033[91m(1) - Nie\033[0m\t\033[92m(2) - Tak\033[0m \xba\n");
przerwy(35); cout << ("\xba \xba\n");
przerwy(35); cout << ("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
przerwy(50); printf("Tw\242j wyb\242r:\t");
}
void render_api::nie_ma_opcji_zapisu() {
system("cls");//czyszczenie ekranu
cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n";
przerwy(35); cout << ("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(35); cout << ("\xba \xba\n");
przerwy(35); cout << ("\xba Niestety nie ma takiej opcji. Spr\242buj ponownie! \xba\n");
przerwy(35); cout << ("\xba Czy chcesz zapisa\206 gr\251 i wyj\230\206 ? \xba\n");
przerwy(35); cout << ("\xba \033[91m(1) - Nie\033[0m\t\033[92m(2) - Tak\033[0m \xba\n");
przerwy(35); cout << ("\xba \xba\n");
przerwy(35); cout << ("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
przerwy(50); printf("Tw\242j wyb\242r:\t");
while (getchar() != '\n') {}
}
void render_api::przerwy(int x)
{
for (int i = 0; i < x; i++)
cout << (" ");
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void render_api::ustawkolor(char c)
{
if (c == 'x') SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 156); //czerwony
else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 154); //zielony
}
void render_api::kolorplanszyprzeciwnika(char c)
{
if (c == '.') SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 156); //czerwony
else SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 154); //zielony
}
void render_api::resetkolor()
{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 0x0f);
}
void render_api::legenda_planszy() {
printf("\n\n\n\n\n\n\n");
przerwy(30);
printf("\x1B[92mTwoja plansza:\t\t\t \x1B[91mPlansza przeciwnika:\033[0m\n\n");
}
void render_api::błędna_współrzędna() {
printf("\nB\210\251dna wsp\242\210rzedna. Popraw:\t");
while (getchar() != '\n') {}//czyszczenie bufora
}
void render_api::podaj_współrzędne() {
printf("\n\n");
przerwy(30); printf("Podaj wsp\242\210rz\251dne gdzie chcesz strzeli\206 X Y:\t");
}
void render_api::game_over_screen(char* nick, unsigned int wolnemiejsce, unsigned int oddane_strzaly_1, unsigned int oddane_strzaly_2, unsigned int trafienia_1, unsigned int trafienia_2) {
system("cls");//czyszczenie ekranu
printf("\n\n\n\n\n\n\n");
przerwy(55);
printf("Wygra\210 %s!", nick);
printf("\n\n\n\n");
przerwy(wolnemiejsce); printf("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(wolnemiejsce); printf("\xba \xba\n");
przerwy(wolnemiejsce); printf("\xba STATYSTYKI: \xba\n");
przerwy(wolnemiejsce); printf("\xba\t%s: \xba\n", nick);
przerwy(wolnemiejsce); printf("\xba Oddanych strza\210\242w: %d \t Trafione strza\210y: %d \xba\n", oddane_strzaly_1, trafienia_1);
przerwy(wolnemiejsce); printf("\xba \xba\n");
przerwy(wolnemiejsce); printf("\xba\t Przeciwnik: \xba\n");
przerwy(wolnemiejsce); printf("\xba Oddanych strza\210\242w: %d \t Trafione strza\210y: %d \xba\n", oddane_strzaly_2, trafienia_2);
przerwy(wolnemiejsce); printf("\xba \xba\n");
przerwy(wolnemiejsce); printf("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
Sleep(1000);
przerwy(50); system("PAUSE");
}
void render_api::render_planszy(char plansza1[10][10], char plansza2[10][10]) {
for (int i = 0; i < 10; i++)
{
if (i == 0)
{
przerwy(20); printf(" \x1B[92m 1 2 3 4 5 6 7 8 9 10\t \x1B[91m1 2 3 4 5 6 7 8 9 10\033[0m\n");
}
else if (i == 1)
{
przerwy(20); printf(" \x1B[92m\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\t \x1B[91m\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\033[0m\n");
}
//zielony - \x1B[92m
//czerwony - \x1B[91m
//reset - \033[0m
else if (i == 2)
{
for (int k = 0; k < 10; k++)
{
if (k < 9)
{
przerwy(20); printf(" \x1B[92m%d \xba\033[0m", k + 1);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 154);
for (int j = 0; j < 9; j++)
{
ustawkolor(plansza1[k][j]); printf(" %c ", plansza1[k][j]);
}
ustawkolor(plansza1[k][9]); printf(" %c", plansza1[k][9]); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 0x0f);
printf("\x1B[92m\xba\033[0m\t \x1B[91m%d\xba\033[0m", k + 1);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 156);
for (int j = 0; j < 9; j++)
{
kolorplanszyprzeciwnika(plansza2[k][j]); printf(" %c ", plansza2[k][j]);
}
kolorplanszyprzeciwnika(plansza2[k][9]); printf(" %c", plansza2[k][9]);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 0x0f);
printf("\x1B[91m\xba\033[0m");
printf("\n");
}
else
{
przerwy(20); printf("\x1B[92m%d \xba\033[0m", k + 1);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 154);
for (int j = 0; j < 9; j++)
{
ustawkolor(plansza1[k][j]); printf(" %c ", plansza1[k][j]);
}
ustawkolor(plansza1[k][9]); printf(" %c", plansza1[k][9]); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 0x0f);
printf("\x1B[92m\xba\t \x1B[91m%d\xba\033[0m", k + 1);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 156);
for (int j = 0; j < 9; j++)
{
kolorplanszyprzeciwnika(plansza2[k][j]); printf(" %c ", plansza2[k][j]);
}
kolorplanszyprzeciwnika(plansza2[k][9]); printf(" %c", plansza2[k][9]); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 156);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 0x0f);
printf("\x1B[91m\xba\033[0m");
printf("\n");
}
}
}
else if (i == 3)
{
przerwy(20); printf(" \x1B[92m\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\t \x1B[91m\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\033[0m\n");
}
}
}
void render_api::nie_ma_opcji() {
printf("\nNie ma takiej opcji. Popraw:\t");
while (getchar() != '\n') {}//czyszczenie bufora
}
void render_api::ustawiasz_statek(int typ, int nr) {
if(typ==1)
printf("Ustawiasz statek 1 masztowy(%d/4) !\nPodaj wsp\242\210rz\251dn\245 X Y: \t", nr + 1);
if(typ==2)
printf("Ustawiasz statek 2 masztowy(%d/3) !\nPodaj wsp\242\210rz\251dn\245 X Y: \t", nr + 1);
if(typ==3)
printf("Ustawiasz statek 3 masztowy(%d/2) !\nPodaj wsp\242\210rz\251dn\245 X Y: \t", nr + 1);
if(typ==4)
printf("Ustawiasz statek 4 masztowy(%d/1) !\nPodaj wsp\242\210rz\251dn\245 X Y: \t", nr + 1);
}
void render_api::nie_można_postawić_statku() {
printf("\nNie mo\276na postawi\206 statku na tej pozycji !\nPodaj now\245 wsp\242\210rz\251dn\245 X Y: \t");
}
void render_api::podaj_orientację() {
printf("Podaj orientacj\251 statku\n1 - w g\242r\251\n2 - w prawo\n3 - w lewo\n4 - w d\242\210\n");
}
void render_api::podaj_nazwę_pliku_do_zapisania_gry() {
system("cls");//czyszczenie ekranu
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n");
przerwy(32); printf("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(32); printf("\xba \xba\n");
przerwy(32); printf("\xba Podaj nazw\251 pliku do zapisania gry: \xba\n");
przerwy(32); printf("\xba \xba\n");
przerwy(32); printf("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
przerwy(55);
}
void render_api::nie_udało_się() {
cout << endl << "Niestety nie uda\210o sie utworzy\206 pliku o podanej nazwie !";
}
void render_api::zapisano_pomylnie() {
system("cls");
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n");
przerwy(32); printf("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(32); printf("\xba \xba\n");
przerwy(32); printf("\xba Zapisano pomy\230lnie ! \xba\n");
przerwy(32); printf("\xba \xba\n");
przerwy(32); printf("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
}
void render_api::wczytano_pomylnie() {
system("cls");//czyszczenie ekranu
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n");
przerwy(40); printf("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(40); printf("\xba \xba\n");
przerwy(40); printf("\xba Wczytano \033[92mpomy\230lnie\033[0m ! \xba\n");
przerwy(40); printf("\xba \xba\n");
przerwy(40); printf("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
}
void render_api::zaczyna(char* nick1) {
for (int i = 3; i > 0; i--)//informacja kto zaczyna gre po wczytaniu stanu gry
{
system("cls");//czyszczenie ekranu
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n");
przerwy(40); printf("\xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n");
przerwy(40); printf("\xba \xba\n");
przerwy(40); printf("\xba Zaczyna \033[92m%s\033[0m ! %d \xba\n", nick1, i);
przerwy(40); printf("\xba \xba\n");
przerwy(40); printf("\xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n");
Sleep(1000);
}
}