version 1.1 | | version 1.2 |
---|
| | |
#define T_Unique (1<<I_Unique) | | #define T_Unique (1<<I_Unique) |
#define T_WeightL (1<<I_WeightL) | | #define T_WeightL (1<<I_WeightL) |
#define T_Brand (1<<I_Brand) | | #define T_Brand (1<<I_Brand) |
| | #define T_Maker (1<<I_Maker) |
| | |
/*** types ar Combinations ***/ | | /*** types ar Combinations ***/ |
#define T_Exit (T_Path | T_X | T_Y ) | | #define T_Exit (T_Path | T_X | T_Y ) |
| | |
| | |
switch (tmp->type) { | | switch (tmp->type) { |
case TELEPORTER: | | case TELEPORTER: |
| | return T_Connected|T_Exit; |
case EXIT: | | case EXIT: |
return T_Exit; | | return T_Exit; |
case TRAPDOOR: | | case TRAPDOOR: |
| | |
case BUTTON: | | case BUTTON: |
case TRIGGER_BUTTON: | | case TRIGGER_BUTTON: |
return T_Button; | | return T_Button; |
| | case CREATOR: |
| | return T_Connected|T_Maker; |
case GATE: | | case GATE: |
case HANDLE: | | case HANDLE: |
case TIMED_GATE: | | case TIMED_GATE: |
| | |
case BOOK: | | case BOOK: |
case SIGN: | | case SIGN: |
return T_Sign; | | return T_Sign; |
| | case MARKER: |
case LOCKED_DOOR: | | case LOCKED_DOOR: |
return T_Lockdoor; | | return T_Lockdoor; |
case SPECIAL_KEY: | | case SPECIAL_KEY: |
| | |
case DIRECTOR: | | case DIRECTOR: |
case FIREWALL: | | case FIREWALL: |
return (NUM_ANIMATIONS(tmp) > 0) | | return (NUM_ANIMATIONS(tmp) > 0) |
? T_Director : T_Default; | | ? T_Director : T_Connected; |
case CONTAINER: | | case CONTAINER: |
return T_Container; | | return T_Container; |
default: | | default: |
| | |
sprintf(str,"%s",ob->race); | | sprintf(str,"%s",ob->race); |
} | | } |
| | |
| | /*** brand ***/ |
| | static void getMakes (object *ob, char *str, XtPointer c) { |
| | if(!ob->other_arch) |
| | sprintf(str,NotUsed); |
| | else |
| | sprintf(str,"%s",ob->other_arch->name); |
| | } |
| | |
/* | | /* |
* putValue functions | | * putValue functions |
* | | * |
| | |
} | | } |
} | | } |
| | |
| | static void putMakes (object *ob, char *str, XtPointer c) { |
| | if(!strcmp(str,NotUsed)) |
| | ob->other_arch = NULL; |
| | else { |
| | ob->other_arch = find_archetype(str); |
| | } |
| | } |
| | |
| | |
/********************************************************************** | | /********************************************************************** |
* tags | | * tags |
**********************************************************************/ | | **********************************************************************/ |
| | |
{"Unique", TypeToggle, getUnique, putUnique}, | | {"Unique", TypeToggle, getUnique, putUnique}, |
{"WeightL", TypeString, getWeightL, putWeightL}, | | {"WeightL", TypeString, getWeightL, putWeightL}, |
{"Brand", TypeString, getBrand, putBrand}, | | {"Brand", TypeString, getBrand, putBrand}, |
| | {"Makes", TypeString, getMakes, putMakes}, /* other_arch */ |
{NULL, 0, 0} | | {NULL, 0, 0} |
}; | | }; |
| | |