forked from danigfavero/LAREIRA
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelemento.c
More file actions
57 lines (47 loc) · 724 Bytes
/
elemento.c
File metadata and controls
57 lines (47 loc) · 724 Bytes
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
#include <stdio.h>
#include <stdlib.h>
typedef enum{
False, True
}bool;
typedef char* string;
typedef union{
int val;
string quali;
}atrib;
typedef struct{
atrib* lista;
}Objeto;
typedef struct{
void* saidas;
}Lugar;
typedef union{
Objeto objeto;
Lugar lugar;
}detalhe;
typedef struct elo{
void* val;
char* nome;
int tipo;
void* value;
struct elo* next;
}Elo;
typedef struct {
Elo * cabec ;
}Lista;
typedef struct TabSim{
int size;
Lista* listas;
}TabSim;
typedef struct Elemento{
string nome;
string* artigos;
string longa;
string curta;
bool ativo;
bool visivel;
bool conhecido;
TabSim conteudo;
int (**acoes)(struct Elemento*,struct Elemento*);
void* animacao;
detalhe def;
}Elemento;