26 win_font::win_font(
char * fic)
32 win_font::win_font(
win_font & tmpfont)
41 void win_font::erase()
48 for(hash_map<u_int16, image*>::iterator i = glyphs.begin(); i != glyphs.end(); i++)
56 void win_font::load(
char * rep)
64 string path = WIN_DIRECTORY;
67 path += WIN_FONT_DIRECTORY;
70 path += string (rep) +
"/";
73 path += WIN_FONT_FILE;
78 cout <<
path <<
" not found !\n";
99 if(i>0 && i<WIN_NB_TABLE_CHAR)
102 font->
draw (0, 0, pos, 0, tl + 1, font->
height () -1, NULL, glph);
109 length_=glyphs[
' ']->length();
117 bool win_font::in_table(
u_int16 tmp)
119 if (glyphs.find (tmp) != glyphs.end ())
return true;
125 if (in_table (i))
return *(glyphs[i]);
126 else return *(glyphs[
' ']);
u_int16 height() const
Returns the height of the drawable.
Class to read data from a Gzip compressed file.
bool open(const string &fname)
Opens a file for read access.
s_int8 get(igzstream &file)
Loads an image from an opened file, saved in game internal format, with alpha and mask values.
Image manipulation class.
#define u_int16
16 bits long unsigned integer
void draw(s_int16 x, s_int16 y, const drawing_area *da_opt=NULL, surface *target=NULL) const
Draw the surface.
A* pathfinding algorithm implementation class.
bool eof()
Returns whether the file is at it's end or not.