#include <thing/properties.h>#include <living/clothing.h>#include <living/combat.h>#include <armour.h>
gehe zum Quellcode dieser Datei
Makrodefinitionen | |
| #define | NEED_PROTOTYPES |
Funktionen | |
| protected void | create () |
| public object * | FilterClothing (closure filterfun, varargs mixed *extra) |
| public object * | FilterArmours (closure filterfun, varargs mixed *extra) |
| public int | WearClothing (object ob) |
| public int | WearArmour (object ob) |
| public int | Wear (object ob) |
| public int | UnwearClothing (object ob) |
| public int | UnwearArmour (object ob) |
| public int | Unwear (object ob) |
| #define NEED_PROTOTYPES |
Definiert in Zeile 12 der Datei clothing.c.
| protected void create | ( | ) |
Definiert in Zeile 19 der Datei clothing.c.
Benutzt F_MODE_AS, P_CLOTHING, PROTECTED, Set() und SetProp().
00019 { 00020 SetProp(P_CLOTHING, ({})); 00021 Set(P_CLOTHING, PROTECTED, F_MODE_AS); 00022 }

| public object* FilterArmours | ( | closure | filterfun, | |
| varargs mixed * | extra | |||
| ) |
Definiert in Zeile 30 der Datei clothing.c.
| public object* FilterClothing | ( | closure | filterfun, | |
| varargs mixed * | extra | |||
| ) |
Definiert in Zeile 24 der Datei clothing.c.
| public int Unwear | ( | object | ob | ) |
Definiert in Zeile 87 der Datei clothing.c.
Benutzt UnwearArmour() und UnwearClothing().
00087 { 00088 // reihenfolge ist wichtig! Ruestung sind _auch_ Kleidung, aber Kleidung 00089 // keine Ruestung. 00090 if (ob->IsArmour()) 00091 return UnwearArmour(ob); 00092 else if (ob->IsClothing()) 00093 return UnwearClothing(ob); 00094 return 0; 00095 }

| public int UnwearArmour | ( | object | ob | ) |
Definiert in Zeile 77 der Datei clothing.c.
Benutzt armours, P_ARMOURS, QueryProp() und SetProp().
Wird benutzt von Unwear().
00077 { 00078 object *armours = QueryProp(P_ARMOURS); 00079 if (member(armours, ob) == -1) 00080 return 0; 00081 00082 armours -= ({ob}); 00083 SetProp(P_ARMOURS, armours); 00084 return 1; 00085 }


| public int UnwearClothing | ( | object | ob | ) |
Definiert in Zeile 68 der Datei clothing.c.
Benutzt clothing, P_CLOTHING, QueryProp() und SetProp().
Wird benutzt von Unwear().
00068 { 00069 object *clothing = QueryProp(P_CLOTHING); 00070 if (member(clothing, ob) == -1) 00071 return 0; 00072 clothing -= ({ob}); 00073 SetProp(P_CLOTHING, clothing); 00074 return 1; 00075 }


| public int Wear | ( | object | ob | ) |
Definiert in Zeile 58 der Datei clothing.c.
Benutzt WearArmour() und WearClothing().
00058 { 00059 // reihenfolge ist wichtig! Ruestung sind _auch_ Kleidung, aber Kleidung 00060 // keine Ruestung. 00061 if (ob->IsArmour()) 00062 return WearArmour(ob); 00063 else if (ob->IsClothing()) 00064 return WearClothing(ob); 00065 return 0; 00066 }

| public int WearArmour | ( | object | ob | ) |
Definiert in Zeile 45 der Datei clothing.c.
Benutzt armours, P_ARMOUR_TYPE, P_ARMOURS, QueryProp(), SetProp() und VALID_ARMOUR_TYPE.
Wird benutzt von Wear().
00045 { 00046 if (!VALID_ARMOUR_TYPE(ob->QueryProp(P_ARMOUR_TYPE))) 00047 return 0; 00048 00049 object *armours = QueryProp(P_ARMOURS); 00050 if (member(armours, ob) != -1) 00051 return 0; 00052 00053 armours += ({ob}); 00054 SetProp(P_ARMOURS, armours); 00055 return 1; 00056 }


| public int WearClothing | ( | object | ob | ) |
Definiert in Zeile 36 der Datei clothing.c.
Benutzt clothing, P_CLOTHING, QueryProp() und SetProp().
Wird benutzt von Wear().
00036 { 00037 object *clothing = QueryProp(P_CLOTHING); 00038 if (member(clothing, ob) != -1) 00039 return 0; 00040 clothing += ({ob}); 00041 SetProp(P_CLOTHING, clothing); 00042 return 1; 00043 }


1.6.3