blob: 876301e7cc63febc6ab749cfea1df1e3d874662d [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001// MorgenGrauen MUDlib
2//
3// spellbook.h -- Funktions-Prototypen fuer das /std/spellbook.h
4//
5// $Id: spellbook.h 8822 2014-05-17 09:49:49Z Zesstra $
6
7#ifndef __SPELLBOOK_H__
8#define __SPELLBOOK_H__
9
10// no defines
11
12#endif // __SPELLBOOK_H__
13
14#ifdef NEED_PROTOTYPES
15
16#ifndef __SPELLBOOK_H_PROTO__
17#define __SPELLBOOK_H_PROTO__
18
19varargs int AddSpell(string verb, int kosten, mixed ski);
20 int CanTrySpell(object caster, mapping sinfo);
21 int SpellSuccess(object caster, mapping sinfo);
22 int TryAttackSpell(object victim, int damage, mixed dtypes,
23 mixed is_spell, object caster,
24 mapping sinfo);
25varargs int TryDefaultAttackSpell(object victim, object caster,
26 mapping sinfo, mixed str);
27varargs int TryGlobalAttackSpell(object caster, mapping sinfo, int suc,
28 int damage, mixed dt, mixed is_spell,
29 int dist, int depth, int width);
30varargs int UseSpell(object caster, string spell, mapping sinfo);
31 mapping QuerySpell(string spell);
32varargs mixed FindDistantGroups(object pl, int dist, int dy, int dx);
33varargs object FindDistantEnemyVictim(string wen, object pl, string msg,
34 int dist, int dy);
35varargs object *FindDistantGroup(object pl, int who, int dist, int dy,
36 int dx);
37varargs object FindEnemyVictim(string wen, object pl, string msg);
38varargs object FindFarEnemyVictim(string wen, object pl, string msg,
39 int min, int max);
40 object *FindGroup(object pl, int who);
41 object *FindGroupN(object pl, int who, int n);
42 object *FindGroupP(object pl, int who, int pr);
43varargs object FindLivingVictim(string wen, object pl, string msg);
44varargs object FindNearEnemyVictim(string wen, object pl, string msg);
45static
46varargs object find_victim(string wen, object pl);
47varargs object FindVictim(string wen, object pl, string msg);
48 string SelectSpell(string spell, mapping sinfo);
49 void Erfolg(object caster, string spell, mapping sinfo);
50 void Learn(object caster, string spell, mapping sinfo);
51 void Misserfolg(object caster, string spell, mapping sinfo);
52varargs void prepare_spell(object caster, string spell, mapping sinfo);
53
54#endif // __SPELLBOOK_H_PROTO__
55
56#endif // // NEED_PROTOYPES