![]() |
Crossfire Server, Trunk
1.75.0
|
#include "global.h"#include <string.h>#include "ob_methods.h"#include "ob_types.h"#include "sounds.h"#include "sproto.h"
Include dependency graph for exit.cpp:Go to the source code of this file.
Functions | |
| static method_ret | exit_type_apply (object *exit, object *op, int autoapply) |
| Handles applying an exit. More... | |
| static method_ret | exit_type_move_on (object *trap, object *victim, object *originator) |
| Move on this Exit object. More... | |
| void | init_type_exit (void) |
| Initializer for the EXIT object type. More... | |
| static int | is_legal_2ways_exit (object *op, object *exit) |
| This fonction return true if the exit is not a 2 ways one or it is 2 ways, valid exit. More... | |
The implementation of the Exit class of objects.
Definition in file exit.cpp.
|
static |
Handles applying an exit.
| exit | The exit applied |
| op | The object applying the exit |
| autoapply | Set this to 1 to automatically apply the sign |
Definition at line 153 of file exit.cpp.
References draw_ext_info, draw_ext_info_format(), enter_exit(), EXIT_PATH, is_legal_2ways_exit(), MAX_BUF, METHOD_ERROR, METHOD_OK, object::msg, MSG_TYPE_APPLY, MSG_TYPE_APPLY_FAILURE, MSG_TYPE_APPLY_SUCCESS, name, NDI_NAVY, NDI_UNIQUE, PLAYER, query_name(), and object::type.
Referenced by init_type_exit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Move on this Exit object.
| trap | The Exit we're moving on |
| victim | The object moving over this one |
| originator | The object that caused the move_on event |
Definition at line 46 of file exit.cpp.
References common_post_ob_move_on(), common_pre_ob_move_on(), draw_ext_info, enter_exit(), EXIT_PATH, METHOD_ERROR, METHOD_OK, object::msg, MSG_TYPE_APPLY, MSG_TYPE_APPLY_TRAP, NDI_NAVY, PLAYER, and object::type.
Referenced by init_type_exit().
Here is the call graph for this function:
Here is the caller graph for this function:| void init_type_exit | ( | void | ) |
Initializer for the EXIT object type.
Definition at line 34 of file exit.cpp.
References EXIT, exit_type_apply(), exit_type_move_on(), register_apply(), and register_move_on().
Referenced by register_all_ob_types().
Here is the call graph for this function:
Here is the caller graph for this function:This fonction return true if the exit is not a 2 ways one or it is 2 ways, valid exit.
A valid 2 way exit means:
| op | player to check for. |
| exit | exit object. |
Definition at line 84 of file exit.cpp.
References object::above, object::contr, EXIT, EXIT_PATH, EXIT_X, EXIT_Y, living::exp, first_player, GET_MAP_OB, has_been_loaded(), object::map, MAP_PLAYER_UNIQUE, object::name, player::next, player::ob, player::party, mapstruct::path, object::race, ready_map_name(), object::stats, object::type, mapstruct::unique, object::x, and object::y.
Referenced by exit_type_apply().
Here is the call graph for this function:
Here is the caller graph for this function: