-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSSH.c
63 lines (50 loc) · 1.65 KB
/
SSH.c
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
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <time.h>
#include <locale.h>
#include "character.h"
#include "ctmcharlist.h"
#include "ctmbattlequeue.h"
#include "ctmbattlesystem.h"
#include "ctminventory.h"
int main(void){
setlocale(LC_ALL, "Portuguese");
struct desc_LSE *c_list = characterList();
struct character *character_temp = NULL;
struct node *node_temp = NULL;
character_temp = newCharacter("Rogerinho", 200, 9, 0.70, 0.50, 1, 100, 70, 0.99, 10, "capacete de carapaça", 20, "casco de carapaça", 20, "escamas", 10, "botas escamosas", 1, "colar estiloso", 12, "machado", 50, 50, 25, 25, 25, 25);
node_temp = characterNode(character_temp);
insertCharacter(c_list, node_temp, 0);
character_temp = newCharacter("You", 190, 9, 0.70, 0.50, 1, 67, 70, 0.99, 10, "capacete de carapaça", 20, "casco de carapaça", 20, "escamas", 10, "botas escamosas", 1, "colar estiloso", 10, "espada", 50, 50, 25, 25, 25, 25);
node_temp = characterNode(character_temp);
insertCharacter(c_list, node_temp, 0);
int op_menu;
printf(
" _____ _ \n"
" / ____| | | \n"
" | (___ | | \n"
" |___ | | | \n"
" ____) | | | \n"
" |_____/ |_| \n"
);
do{
printf("\n\n1. new game\n2. sair\n");
setbuf(stdin, NULL);
scanf("%i",&op_menu);
switch(op_menu){
case 1:
printf("teste de batalha da versão pre-alpha!\n");
battle(c_list, c_list->LSE->info, c_list->LSE->next->info);
break;
case 2:
printf("encerrando...");
break;
default:
printf("error 666");
break;
}
}while(op_menu != 2);
return 0;
}