fixed chicken messages
[snoogans.git] / misc.h
blob0c09dc001101bfdd107de68f218c145084a315f2
1 /*
2 * Copyright (C) 2010 gonzoj
4 * Please check the CREDITS file for further information.
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef MISC_H_
21 #define MISC_H_
23 #include "d2structs.h"
24 #include "types.h"
26 typedef enum
28 D2FONT_WHITE,
29 D2FONT_RED,
30 D2FONT_GREEN,
31 D2FONT_BLUE,
32 D2FONT_GOLD,
33 D2FONT_GREY,
34 D2FONT_BLACK,
35 D2FONT_ORANGE = 8,
36 D2FONT_YELLOW = 9,
37 D2FONT_PURPLE = 11
38 } D2FONT_COLOR;
40 typedef enum
42 D2GFX_WHITE = 0xFF,
43 D2GFX_RED = 0x0A,
44 D2GFX_GREEN = 0x7D,
45 D2GFX_BLUE = 0x91,
46 D2GFX_GOLD = 0x5A,
47 D2GFX_GREY = 0xBC,
48 D2GFX_BLACK = 0x00,
49 D2GFX_ORANGE = 0x60,
50 D2GFX_YELLOW = 0x6F,
51 D2GFX_PURPLE = 0xE1
52 } D2GFX_COLOR;
54 typedef enum
56 D2FONT_SMALL = 6,
57 D2FONT_STANDARD = 0,
58 D2FONT_HUGE = 5,
59 D2FONT_SPECIAL = 1
60 } D2FONT_SIZE;
62 #define FONT_COLOR(c) ((char[]) { 0xFF, 'c', #c[0], '\0' })
64 void
65 char_to_ms_wchar(char *, ms_wchar_t *);
67 void
68 ms_wchar_to_char(ms_wchar_t *, char *);
70 void
71 print_ingame(int, const char *, ...);
73 void
74 draw_text(int, int, int, int, int, int, char *, ...);
76 void
77 draw_rectangle(int, int, int, int);
79 void
80 draw_cross(int, int, int, int);
82 void
83 draw_box(int, int, int, int, int, int, int);
85 level *
86 get_level(act_misc *, DWORD);
88 automap_layer *
89 init_automap_layer(DWORD);
91 int
92 ingame();
94 int
95 valid_monster(unit_any *);
97 int
98 intown();
101 get_hp_percent();
103 #endif /* MISC_H_ */