Go to the source code of this file.
Data Structures | |
| struct | GROUP |
| struct | TYPE |
Defines | |
| #define | TRUE 1 |
| #define | FALSE 0 |
| #define | NUM_OF_TYPES 400 |
| #define | NUM_OF_GROUPS 42 |
| #define | GROUP_NAME_LEN 20 |
Functions | |
| int | get_group_of_type (short selected_type) |
| void | set_map_groups (void) |
| int | get_type_cost (short type) |
| int | get_group_cost (short group) |
| void | get_type_name (short type, char *s) |
Variables | |
| GROUP | main_groups [NUM_OF_GROUPS] |
| TYPE | main_types [NUM_OF_TYPES] |
|
|
Definition at line 13 of file lintypes.h. |
|
|
Definition at line 18 of file lintypes.h. |
|
|
Definition at line 17 of file lintypes.h. |
|
|
Definition at line 16 of file lintypes.h. |
|
|
Definition at line 10 of file lintypes.h. |
|
|
Definition at line 1501 of file lintypes.c. 01502 {
01503 return (int) ((float) main_groups[group].cost
01504 + ((float) main_groups[group].cost
01505 * ((float) main_groups[group].cost_mul
01506 * (float) tech_level)
01507 / (float) MAX_TECH_LEVEL));
01508 }
|
|
|
Definition at line 1484 of file lintypes.c. 01485 {
01486 return main_types[type].group;
01487 }
|
|
|
Definition at line 1519 of file lintypes.c. 01520 {
01521 return get_group_cost ((short) get_group_of_type (type));
01522 }
|
|
||||||||||||
|
Definition at line 1511 of file lintypes.c. 01512 {
01513 short g;
01514 g = get_group_of_type (type);
01515 strcpy (s, _(main_groups[g].name));
01516 }
|
|
|
Definition at line 1490 of file lintypes.c. 01491 {
01492 int x, y;
01493 for (x = 0; x < WORLD_SIDE_LEN; x++) {
01494 for (y = 0; y < WORLD_SIDE_LEN; y++) {
01495 MP_GROUP(x,y) = get_group_of_type(MP_TYPE(x,y));
01496 }
01497 }
01498 }
|
|
|
Definition at line 16 of file lintypes.c. |
|
|
Definition at line 14 of file lintypes.c. |
1.3.9.1