-
Notifications
You must be signed in to change notification settings - Fork 57
/
counters.h
61 lines (49 loc) · 1.6 KB
/
counters.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef __COUNTERS_H__
#define __COUNTERS_H__
#include "actors_list.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Counter structure */
struct Counter {
char *name;
Uint32 n_session;
Uint32 n_total;
Uint32 extra;
};
int now_harvesting(void);
void clear_now_harvesting(void);
void set_now_harvesting(void);
extern char harvest_name[32];
extern Uint32 disconnect_time;
extern char last_spell_name[60];
extern unsigned int floating_counter_flags;
extern int floating_session_counters;
void load_counters(void);
void flush_counters(void);
void cleanup_counters(void);
void fill_counters_win(int window_id);
void reset_session_counters(void);
void print_session_counters(const char *category);
void increment_death_counter(const actor *act, locked_list_ptr actors_list);
void increment_critfail_counter(const char *name);
void increment_used_item_counter(const char *name, int quantity);
void increment_harvest_counter(int quantity);
void decrement_harvest_counter(int quantity);
void increment_alchemy_counter(void);
void increment_crafting_counter(void);
void increment_engineering_counter(void);
void increment_tailoring_counter(void);
void increment_potions_counter(void);
void increment_manufacturing_counter(void);
void increment_spell_counter(int spell_id);
void increment_summon_manu_counter(void);
void increment_summon_counter(char *string);
void catch_counters_text(const char* text);
void counters_set_product_info(char *name, int count);
void counters_set_spell_name(int spell_id, char *name, int len);
int is_death_message (const char * RawText);
#ifdef __cplusplus
} // extern "C"
#endif
#endif /* __COUNTERS_H__ */