MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | // 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 | |
| 19 | varargs 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); |
| 25 | varargs int TryDefaultAttackSpell(object victim, object caster, |
| 26 | mapping sinfo, mixed str); |
| 27 | varargs int TryGlobalAttackSpell(object caster, mapping sinfo, int suc, |
| 28 | int damage, mixed dt, mixed is_spell, |
| 29 | int dist, int depth, int width); |
| 30 | varargs int UseSpell(object caster, string spell, mapping sinfo); |
| 31 | mapping QuerySpell(string spell); |
| 32 | varargs mixed FindDistantGroups(object pl, int dist, int dy, int dx); |
| 33 | varargs object FindDistantEnemyVictim(string wen, object pl, string msg, |
| 34 | int dist, int dy); |
| 35 | varargs object *FindDistantGroup(object pl, int who, int dist, int dy, |
| 36 | int dx); |
| 37 | varargs object FindEnemyVictim(string wen, object pl, string msg); |
| 38 | varargs 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); |
| 43 | varargs object FindLivingVictim(string wen, object pl, string msg); |
| 44 | varargs object FindNearEnemyVictim(string wen, object pl, string msg); |
| 45 | static |
| 46 | varargs object find_victim(string wen, object pl); |
| 47 | varargs 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); |
| 52 | varargs void prepare_spell(object caster, string spell, mapping sinfo); |
| 53 | |
| 54 | #endif // __SPELLBOOK_H_PROTO__ |
| 55 | |
| 56 | #endif // // NEED_PROTOYPES |