21 win_font::win_font(
char * fic)
27 win_font::win_font(
win_font & tmpfont)
36 void win_font::erase()
38 if(cursor)
delete cursor;
43 void win_font::load(
char * rep)
51 string path = WIN_DIRECTORY;
54 path += WIN_FONT_DIRECTORY;
57 path += string (rep) +
"/";
60 path += WIN_FONT_FILE;
65 cout << path <<
" not found !\n";
86 if(i>0 && i<WIN_NB_TABLE_CHAR)
89 font->
draw (0, 0, pos, 0, tl + 1, font->
height () -1, NULL, glph);
96 length_=glyphs[
' ']->length();
104 bool win_font::in_table(
u_int16 tmp)
106 if (glyphs.find (tmp) != glyphs.end ())
return true;
112 if (in_table (i))
return *(glyphs[i]);
113 else return *(glyphs[
' ']);
bool eof()
Returns whether the file is at it's end or not.
Class to read data from a Gzip compressed file.
#define u_int16
16 bits long unsigned integer
Image manipulation class.
bool open(const string &fname)
Opens a file for read access.
void draw(s_int16 x, s_int16 y, const drawing_area *da_opt=NULL, surface *target=NULL) const
Draw the surface.
u_int16 height() const
Returns the height of the drawable.
A* pathfinding algorithm implementation class.
s_int8 get(igzstream &file)
Loads an image from an opened file, saved in game internal format, with alpha and mask values...