client/picture.h File Reference

#include <string>

Go to the source code of this file.

Functions

void add_directory (std::string)
void add_images ()
void set_team (int r, int g, int b)
void set_terrain (int type, int x, int y)
void set_add (int type, int x, int y, int dir)
void set_castle (int type, int x, int y)
void move_map (int dx, int dy)
int set_unit (int type, int action, int x, int y, int d, int u)
void paint ()


Function Documentation

void add_directory ( std::string   ) 

void add_images (  ) 

void move_map ( int  dx,
int  dy 
)

void paint (  ) 

Draw a map including units on it, keep the background for future usage

void set_add ( int  type,
int  x,
int  y,
int  dir 
)

void set_castle ( int  type,
int  x,
int  y 
)

void set_team ( int  r,
int  g,
int  b 
)

void set_terrain ( int  type,
int  x,
int  y 
)

set a terrain type

int set_unit ( int  type,
int  action,
int  x,
int  y,
int  d,
int  u 
)

select a picture of a unit

Returns:
-1 = unit not found -2 = action not found 0 = ok
Parameters:
type  Type of unit
action  Action of the unit
x  Position in x
y  Position in y
d  Direction
u  Percentage underway into direction



Generated on Tue Jan 1 17:30:01 2008 for client/picture.h File Reference by  doxygen   Visit the project page on SourceForge.net Logo