#include <player/life.h>#include <player/base.h>#include <thing/properties.h>#include <exploration.h>#include <scoremaster.h>#include <new_skills.h>
gehe zum Quellcode dieser Datei
Makrodefinitionen | |
| #define | NEED_PROTOTYPES |
| #define | XP_FAC ([1:10,2:40,3:150,4:600,5:2250,6:9000,7:35000,8:140000,9:500000]) |
| #define | DEBUG(x, y) |
Funktionen | |
| void | create () |
| string | Forschung () |
| static string | _query_given_scores () |
| int | AddScore (int contributor) |
| int | TestScore (int contributor) |
| int | SetScoreBit (int contributor) |
| int | ClearScoreBit (int contributor) |
Variablen | |
| private string | given_scores |
| static private mixed | epnum |
| #define DEBUG | ( | x, | |||
| y | ) |
Definiert in Zeile 48 der Datei exploration.c.
| #define NEED_PROTOTYPES |
Definiert in Zeile 12 der Datei exploration.c.
| #define XP_FAC ([1:10,2:40,3:150,4:600,5:2250,6:9000,7:35000,8:140000,9:500000]) |
Definiert in Zeile 45 der Datei exploration.c.
| static string _query_given_scores | ( | ) | [static] |
Definiert in Zeile 38 der Datei exploration.c.
Benutzt given_scores.
00039 { 00040 return given_scores; 00041 }
| int AddScore | ( | int | contributor | ) |
Definiert in Zeile 50 der Datei exploration.c.
Benutzt force_save(), given_scores, info, old_explode(), P_LEP, Query(), SCORE_KEY, SCORE_SCORE, SCOREMASTER und Set().
00051 { 00052 mixed info; 00053 object po; 00054 int drin; 00055 00056 if (!pointerp(info = SCOREMASTER->QueryNPCbyNumber(contributor))) 00057 return -1; 00058 00059 if ((po = previous_object()) && (object_name(po) == SCOREMASTER)) 00060 po = previous_object(1); 00061 00062 if (!po || old_explode(object_name(po),"#")[0] != info[SCORE_KEY]) 00063 return -2; 00064 00065 if (!stringp(given_scores)) 00066 given_scores = " "; 00067 00068 if (catch(drin = test_bit(given_scores, contributor);publish)) 00069 return -3; 00070 00071 if (!drin) { 00072 given_scores = set_bit(given_scores, contributor); 00073 Set(P_LEP, Query(P_LEP) + info[SCORE_SCORE]); 00074 force_save(); 00075 return info[SCORE_SCORE]; 00076 } 00077 return 0; 00078 }

| int ClearScoreBit | ( | int | contributor | ) |
Definiert in Zeile 109 der Datei exploration.c.
Benutzt force_save(), given_scores und SCOREMASTER.
00110 { 00111 int drin; 00112 00113 if (!previous_object() || (object_name(previous_object()) != SCOREMASTER)) 00114 return -1; 00115 00116 if (catch(drin = test_bit(given_scores, contributor);publish)) 00117 return -2; 00118 00119 if (!drin) return -3; 00120 00121 given_scores = clear_bit(given_scores, contributor); 00122 force_save(); 00123 return 1; 00124 }

| void create | ( | ) |
Definiert in Zeile 27 der Datei exploration.c.
Benutzt F_MODE_AS, given_scores, P_LEP, SAVE, SECURED und Set().

| string Forschung | ( | ) |
Definiert in Zeile 33 der Datei exploration.c.
Benutzt EPMASTER.
00034 { 00035 return EPMASTER->QueryForschung(); 00036 }
| int SetScoreBit | ( | int | contributor | ) |
Definiert in Zeile 92 der Datei exploration.c.
Benutzt force_save(), given_scores und SCOREMASTER.
00093 { 00094 int drin; 00095 00096 if (!previous_object() || (object_name(previous_object()) != SCOREMASTER)) 00097 return -1; 00098 00099 if (catch(drin = test_bit(given_scores, contributor);publish)) 00100 return -2; 00101 00102 if (drin) return -3; 00103 00104 given_scores = set_bit(given_scores, contributor); 00105 force_save(); 00106 return 1; 00107 }

| int TestScore | ( | int | contributor | ) |
Definiert in Zeile 80 der Datei exploration.c.
Benutzt given_scores und SCOREMASTER.
00081 { 00082 int ret; 00083 00084 if (!previous_object() || (object_name(previous_object()) != SCOREMASTER)) 00085 return 0; 00086 00087 catch(ret = test_bit(given_scores, contributor);publish); 00088 00089 return ret; 00090 }
private mixed epnum [static] |
| private string given_scores |
Definiert in Zeile 23 der Datei exploration.c.
Wird benutzt von _query_given_scores(), AddScore(), ClearScoreBit(), create(), SetScoreBit() und TestScore().
1.6.3