Crossfire Server, Branch 1.12
R12190
|
The implementation of the PLAYER_CHANGER class of objects. More...
#include <global.h>
#include <ob_methods.h>
#include <ob_types.h>
#include <sounds.h>
#include <sproto.h>
Go to the source code of this file.
Functions | |
void | init_type_player_changer (void) |
Initializer for the player changer object type. | |
static method_ret | player_changer_type_process (ob_methods *context, object *op) |
Move for PLAYER_CHANGER. |
The implementation of the PLAYER_CHANGER class of objects.
Definition in file player_changer.c.
void init_type_player_changer | ( | void | ) |
Initializer for the player changer object type.
Definition at line 39 of file player_changer.c.
References PLAYER_CHANGER, player_changer_type_process(), and register_process().
Referenced by register_all_ob_types().
static method_ret player_changer_type_process | ( | ob_methods * | context, |
object * | op | ||
) | [static] |
Move for PLAYER_CHANGER.
This object will teleport someone to a different map and will also apply changes to the player from its inventory.
This was invented for giving classes, but there's no reason it can't be generalized.
context | The method context |
op | The player changer that's being processed. |
Definition at line 56 of file player_changer.c.
References apply_changes_to_player(), enter_exit(), esrv_send_inventory(), esrv_update_item(), EVENT_TRIGGER, execute_event(), EXIT_PATH, EXIT_X, EXIT_Y, fix_object(), llevDebug, LOG(), METHOD_OK, PLAYER, save_player(), SCRIPT_FIX_NOTHING, and UPD_FACE.
Referenced by init_type_player_changer().