-
Notifications
You must be signed in to change notification settings - Fork 0
/
smodule.h
40 lines (34 loc) · 816 Bytes
/
smodule.h
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
#ifndef _MODULE_H
#define _MODULE_H
#include "conf.h"
#include "parse.h"
typedef struct smodule obj_smodule;
struct smodule{
#ifdef T
#undef T
#endif
#define T smodule
#include "submod/cstl/tmpl/obj.h"
#undef T
int smodType;
char* name;
int posx;
int posy;
int hp;
int armor;
int powergen;
int hitChance;
int ap;
int apGen;
bool external;
int curr_hp;
int curr_armor;
};
obj_smodule* OBJF(obj_smodule,finalize)(obj_smodule* this);
void OBJF(obj_smodule,free)(obj_smodule* this);
void OBJF(obj_smodule,clean)(obj_smodule* this);
/*obj_smodule* OBJF(obj_smodule,copy)(obj_smodule* this);*/
void OBJF(obj_smodule,copy)(obj_smodule* this, obj_smodule* dest);
obj_smodule* OBJF(obj_smodule,print)(obj_smodule* this);
int smoduleParse(obj_smodule* this, json_stream* js);
#endif // _MODULE_H