File castle.c
\
|* Special procedures for Kings Castle by Pjotr (d90-pem@nada.kth.se) *|
|* Coded by Sapowox (d90-jkr@nada.kth.se) *|
\
Included Files
#include "structs.h"
#include "utils.h"
#include "comm.h"
#include "interpreter.h"
#include "handler.h"
#include "db.h"
#include "spells.h"
Preprocessor definitions
#define Z_KINGS_C 150
#define C_MOB_SPEC( zone, mob )
#define R_MOB( zone, mob )
#define R_OBJ( zone, obj )
#define R_ROOM( zone, num )
#define CASTLE_ITEM( item )
Global Variable CastleGuard
char ( CastleGuard)(struct char_data* ch,void* me,int cmd,char* argument)
- Visible in:
-
- castle.c
- Used in:
-
- assign_kings_castle() : castle.c
Global Variable James
char ( James)(struct char_data* ch,void* me,int cmd,char* argument)
- Visible in:
-
- castle.c
- Used in:
-
- assign_kings_castle() : castle.c
Global Variable cleaning
char ( cleaning)(struct char_data* ch,void* me,int cmd,char* argument)
- Visible in:
-
- castle.c
- Used in:
-
- assign_kings_castle() : castle.c
Global Variable DicknDavid
char ( DicknDavid)(struct char_data* ch,void* me,int cmd,char* argument)
- Visible in:
-
- castle.c
- Used in:
-
- assign_kings_castle() : castle.c
Global Variable tim
char ( tim)(struct char_data* ch,void* me,int cmd,char* argument)
- Visible in:
-
- castle.c
- Used in:
-
- assign_kings_castle() : castle.c
Global Variable tom
char ( tom)(struct char_data* ch,void* me,int cmd,char* argument)
- Visible in:
-
- castle.c
- Used in:
-
- assign_kings_castle() : castle.c
Global Variable king_welmar
char ( king_welmar)(struct char_data* ch,void* me,int cmd,char* argument)
- Visible in:
-
- castle.c
- Used in:
-
- assign_kings_castle() : castle.c
Global Variable training_master
char ( training_master)(struct char_data* ch,void* me,int cmd,char* argument)
- Visible in:
-
- castle.c
- Used in:
-
- assign_kings_castle() : castle.c
Global Variable peter
char ( peter)(struct char_data* ch,void* me,int cmd,char* argument)
- Visible in:
-
- castle.c
- Used in:
-
- assign_kings_castle() : castle.c
Global Variable jerry
char ( jerry)(struct char_data* ch,void* me,int cmd,char* argument)
- Visible in:
-
- castle.c
- Used in:
-
- assign_kings_castle() : castle.c
External Variables
world
extern struct room_data* world
- Defined in:
-
- db.c
character_list
extern struct char_data* character_list
- Defined in:
-
- db.c
descriptor_list
extern struct descriptor_data* descriptor_list
- Defined in:
-
- comm.c
mob_index
extern struct index_data* mob_index
- Defined in:
-
- db.c
obj_index
extern struct index_data* obj_index
- Defined in:
-
- db.c
time_info
extern struct time_info_data time_info
- Defined in:
-
- db.c
Global Function CastleGuard()
int ( CastleGuard) ( struct char_data* ch, void* me, int cmd, char* argument )
- Calls:
-
- banzaii() : castle.c
Global Function DicknDavid()
int ( DicknDavid) ( struct char_data* ch, void* me, int cmd, char* argument )
- Calls:
-
- banzaii() : castle.c
- block_way() : castle.c
- References Variables:
-
- arg
Global Function James()
int ( James) ( struct char_data* ch, void* me, int cmd, char* argument )
- Calls:
-
- act() : comm.c
- is_trash() : castle.c
- obj_from_room() : handler.c
- obj_to_char() : handler.c
- References Variables:
-
- world : db.c
Global Function assign_kings_castle()
void assign_kings_castle ( void )
- Calls:
-
- real_mobile() : db.c
- References Variables:
-
- CastleGuard : castle.c
- DicknDavid : castle.c
- James : castle.c
- cleaning : castle.c
- jerry : castle.c
- king_welmar : castle.c
- mob_index : db.c
- peter : castle.c
- tim : castle.c
- tom : castle.c
- training_master : castle.c
Global Function banzaii()
int banzaii ( struct char_data* ch )
- Calls:
-
- act() : comm.c
- get_victim() : castle.c
- hit() : fight.c
- Called by:
-
- CastleGuard() : castle.c
- DicknDavid() : castle.c
- jerry() : castle.c
- king_welmar() : castle.c
- peter() : castle.c
- tim() : castle.c
- tom() : castle.c
- training_master() : castle.c
Global Function block_way()
int block_way ( struct char_data* ch, int cmd, char* arg, int iIn_room, int iProhibited_direction )
- Calls:
-
- act() : comm.c
- member_of_staff() : castle.c
- real_room() : db.c
- send_to_char() : comm.c
- strncmp()
- Called by:
-
- DicknDavid() : castle.c
- tim() : castle.c
- tom() : castle.c
Global Function cleaning()
int ( cleaning) ( struct char_data* ch, void* me, int cmd, char* argument )
- Calls:
-
- act() : comm.c
- is_trash() : castle.c
- obj_from_room() : handler.c
- obj_to_char() : handler.c
- References Variables:
-
- world : db.c
Global Function do_npc_rescue()
int do_npc_rescue ( struct char_data* ch_hero, struct char_data* ch_victim )
- Calls:
-
- act() : comm.c
- set_fighting() : fight.c
- stop_fighting() : fight.c
- Called by:
-
- tim() : castle.c
- tom() : castle.c
- References Variables:
-
- world : db.c
Global Function find_guard()
struct char_data* find_guard ( struct char_data* chAtChar )
- Calls:
-
- member_of_royal_guard() : castle.c
- Called by:
-
- peter() : castle.c
- References Variables:
-
- world : db.c
Global Function find_npc_by_name()
struct char_data* find_npc_by_name ( struct char_data* chAtChar, char* pszName, int iLen )
- Calls:
-
- strncmp()
- Called by:
-
- jerry() : castle.c
- tim() : castle.c
- tom() : castle.c
- training_master() : castle.c
- References Variables:
-
- world : db.c
Global Function fry_victim()
void fry_victim ( struct char_data* ch )
- Calls:
-
- act() : comm.c
- cast_spell() : spell_parser.c
- get_victim() : castle.c
- number() : utils.c
- Called by:
-
- king_welmar() : castle.c
Global Function get_victim()
struct char_data* get_victim ( struct char_data* chAtChar )
- Calls:
-
- member_of_staff() : castle.c
- number() : utils.c
- Called by:
-
- banzaii() : castle.c
- fry_victim() : castle.c
- References Variables:
-
- world : db.c
Global Function is_trash()
int is_trash ( struct obj_data* i )
- Called by:
-
- James() : castle.c
- cleaning() : castle.c
Global Function jerry()
int ( jerry) ( struct char_data* ch, void* me, int cmd, char* argument )
- Calls:
-
- act() : comm.c
- banzaii() : castle.c
- find_npc_by_name() : castle.c
- number() : utils.c
Global Function king_welmar()
int ( king_welmar) ( struct char_data* ch, void* me, int cmd, char* argument )
- Calls:
-
- act() : comm.c
- banzaii() : castle.c
- fry_victim() : castle.c
- perform_move() : act.movement.c
- real_room() : db.c
- References Variables:
-
- time_info : db.c
Global Function member_of_royal_guard()
int member_of_royal_guard ( struct char_data* chChar )
- Called by:
-
- find_guard() : castle.c
- References Variables:
-
- mob_index : db.c
Global Function member_of_staff()
int member_of_staff ( struct char_data* chChar )
- Called by:
-
- block_way() : castle.c
- get_victim() : castle.c
- References Variables:
-
- mob_index : db.c
Global Function peter()
int ( peter) ( struct char_data* ch, void* me, int cmd, char* argument )
- Calls:
-
- act() : comm.c
- banzaii() : castle.c
- find_guard() : castle.c
- number() : utils.c
Global Function tim()
int ( tim) ( struct char_data* ch, void* me, int cmd, char* argument )
- Calls:
-
- banzaii() : castle.c
- block_way() : castle.c
- do_npc_rescue() : castle.c
- find_npc_by_name() : castle.c
- References Variables:
-
- arg
Global Function tom()
int ( tom) ( struct char_data* ch, void* me, int cmd, char* argument )
- Calls:
-
- banzaii() : castle.c
- block_way() : castle.c
- do_npc_rescue() : castle.c
- find_npc_by_name() : castle.c
- References Variables:
-
- arg
Global Function training_master()
int ( training_master) ( struct char_data* ch, void* me, int cmd, char* argument )
- Calls:
-
- act() : comm.c
- banzaii() : castle.c
- find_npc_by_name() : castle.c
- number() : utils.c
- send_to_char() : comm.c