|
Atrinik Server 2.5
|
Go to the source code of this file.
Data Structures | |
| struct | wm_region |
Defines | |
| #define | MAX_PIXELS 3 |
Typedefs | |
| typedef struct wm_region | wm_region |
Functions | |
| static void | wm_images_init () |
| static int | render_object (gdImagePtr im, int x, int y, object *ob) |
| static void | region_add_map (wm_region *r, mapstruct *m) |
| static int | map_in_region (mapstruct *m, const char *name) |
| static void | region_add_rec (wm_region *r, mapstruct *m, const char *region_name) |
| void | world_maker () |
Variables | |
| static int ** | wm_face_colors |
Handles the world maker code.
Definition in file world_maker.c.
| #define MAX_PIXELS 3 |
Pixels per tile (3 = 3x3 box).
Definition at line 47 of file world_maker.c.
| static int map_in_region | ( | mapstruct * | m, |
| const char * | name | ||
| ) | [static] |
Check if the specified map is in the specified region. Parent regions are checked for match.
| m | Map. |
| name | Region to check. |
Definition at line 236 of file world_maker.c.
Recursively add maps to a region.
| r | Region. |
| m | Start map. |
| region_name | Region name. |
Definition at line 256 of file world_maker.c.
| static int render_object | ( | gdImagePtr | im, |
| int | x, | ||
| int | y, | ||
| object * | ob | ||
| ) | [static] |
Render a single object on the image 'im'.
| im | Image to render on. |
| x | X position. |
| y | Y position. |
| ob | Object to render. |
Definition at line 157 of file world_maker.c.
| static void wm_images_init | ( | ) | [static] |
Initialize the face colors.
Definition at line 89 of file world_maker.c.
| void world_maker | ( | ) |
The main world maker function.
Definition at line 348 of file world_maker.c.
int** wm_face_colors [static] |
Array of colors used by the different faces.
Each entry is an array consisting of:
Definition at line 44 of file world_maker.c.
1.7.4