#include <cstdio>
#include <fstream>
#include <cstring>
#include <cstdlib>
#include <iomanip>
#include <algorithm>
#include "Gump.h"
#include "Gump_manager.h"
#include "Text_gump.h"
#include "Audio.h"
#include "animate.h"
#include "barge.h"
#include "chunks.h"
#include "conversation.h"
#include "exult.h"
#include "game.h"
#include "gamewin.h"
#include "gamemap.h"
#include "keyring.h"
#include "mouse.h"
#include "schedule.h"
#include "tqueue.h"
#include "ucinternal.h"
#include "ucsched.h"
#include "useval.h"
#include "utils.h"
#include "vec.h"
#include "actors.h"
#include "egg.h"
#include "actions.h"
#include "stackframe.h"
#include "ucfunction.h"
#include "effects.h"
#include "party.h"
#include "bgintrinsics.h"
#include "siintrinsics.h"
Include dependency graph for ucinternal.cc:
Go to the source code of this file.
Classes | |
class | Object_reverse_sorter |
class | Usecode_internal |
class | Usecode_internal |
Defines | |
#define | __STRING(x) "x" |
#define | USECODE_INTRINSIC_PTR(NAME) { &Usecode_internal::UI_ ## NAME, __STRING(NAME) } |
#define | CERR_CURRENT_IP() |
#define | LOCAL_VAR_ERROR(x) |
#define | DATA_SEGMENT_ERROR() |
#define | EXTERN_ERROR() |
#define | FLAG_ERROR(x) |
Typedefs | |
typedef Usecode_value(Usecode_internal::*) | UsecodeIntrinsicFn (int event, int intrinsic, int num_parms, Usecode_value parms[12]) |
Functions | |
Barge_object * | Get_barge (Game_object *obj) |
static void | Usecode_Trace (const char *name, int intrinsic, int num_parms, Usecode_value parms[12]) |
static void | Usecode_TraceReturn (Usecode_value &v) |
static void | Write_useval (ostream &out, Usecode_value &val) |
Variables | |
bool | intrinsic_trace |
int | usecode_trace |
Usecode_value | no_ret |
int | max_bundled_intrinsics = 0xff |
#define __STRING | ( | x | ) | "x" |
Definition at line 1466 of file ucinternal.cc.
#define CERR_CURRENT_IP | ( | ) |
Value:
cerr << " (at function = " << hex << setw(4) << setfill('0')\ << frame->function->id << ", ip = " \ << current_IP << dec << setfill(' ') << ")" << endl
Definition at line 1743 of file ucinternal.cc.
Referenced by Usecode_internal::run().
#define DATA_SEGMENT_ERROR | ( | ) |
Value:
cerr << "Data pointer out of range!";\ CERR_CURRENT_IP()
Definition at line 1752 of file ucinternal.cc.
Referenced by Usecode_internal::run().
#define EXTERN_ERROR | ( | ) |
Value:
cerr << "Extern offset out of range!";\ CERR_CURRENT_IP()
Definition at line 1756 of file ucinternal.cc.
Referenced by Usecode_internal::run().
#define FLAG_ERROR | ( | x | ) |
Value:
cerr << "Global flag #" << (x) << " out of range!";\ CERR_CURRENT_IP()
Definition at line 1760 of file ucinternal.cc.
Referenced by Usecode_internal::run().
#define LOCAL_VAR_ERROR | ( | x | ) |
Value:
cerr << "Local variable #" << (x) << " out of range!";\ CERR_CURRENT_IP()
Definition at line 1748 of file ucinternal.cc.
Referenced by Usecode_internal::run().
#define USECODE_INTRINSIC_PTR | ( | NAME | ) | { &Usecode_internal::UI_ ## NAME, __STRING(NAME) } |
Definition at line 1470 of file ucinternal.cc.
typedef Usecode_value(Usecode_internal::*) UsecodeIntrinsicFn(int event, int intrinsic, int num_parms, Usecode_value parms[12]) |
Definition at line 1459 of file ucinternal.cc.
Barge_object* Get_barge | ( | Game_object * | obj | ) |
Definition at line 944 of file ucinternal.cc.
References Barge_object::as_barge(), Game_object::get_lift(), Barge_object::get_tile_footprint(), Rectangle::has_point(), Exult_server::obj, Tile_coord::tx, Tile_coord::ty, and Tile_coord::tz.
Here is the call graph for this function:
static void Usecode_Trace | ( | const char * | name, | |
int | intrinsic, | |||
int | num_parms, | |||
Usecode_value | parms[12] | |||
) | [static] |
static void Usecode_TraceReturn | ( | Usecode_value & | v | ) | [static] |
Definition at line 1410 of file ucinternal.cc.
References Usecode_value::print().
Referenced by Usecode_internal::Execute_Intrinsic().
Here is the call graph for this function:
static void Write_useval | ( | ostream & | out, | |
Usecode_value & | val | |||
) | [static] |
Definition at line 2616 of file ucinternal.cc.
References len, and Usecode_value::save().
Referenced by Usecode_internal::write().
Here is the call graph for this function:
bool intrinsic_trace |
Definition at line 113 of file exult.cc.
Referenced by Usecode_internal::Execute_Intrinsic(), and exult_main().
int max_bundled_intrinsics = 0xff |
Definition at line 1487 of file ucinternal.cc.
Definition at line 1428 of file ucinternal.cc.
Referenced by Usecode_internal::call_intrinsic(), Usecode_internal::UI_add_answer(), Usecode_internal::UI_add_to_keyring(), Usecode_internal::UI_add_to_party(), Usecode_internal::UI_advance_time(), Usecode_internal::UI_armageddon(), Usecode_internal::UI_attack_avatar(), Usecode_internal::UI_book_mode(), Usecode_internal::UI_call_guards(), Usecode_internal::UI_cause_light(), Usecode_internal::UI_center_view(), Usecode_internal::UI_clear_answers(), Usecode_internal::UI_clear_item_flag(), Usecode_internal::UI_clear_item_say(), Usecode_internal::UI_close_gumps(), Usecode_internal::UI_delayed_execute_usecode_array(), Usecode_internal::UI_display_area(), Usecode_internal::UI_display_map(), Usecode_internal::UI_display_runes(), Usecode_internal::UI_earthquake(), Usecode_internal::UI_end_conversation(), Usecode_internal::UI_error_message(), Usecode_internal::UI_fade_palette(), Usecode_internal::UI_fire_cannon(), Usecode_internal::UI_flash_mouse(), Usecode_internal::UI_get_npc_id(), Usecode_internal::UI_halt_scheduled(), Usecode_internal::UI_infravision(), Usecode_internal::UI_init_conversation(), Usecode_internal::UI_item_say(), Usecode_internal::UI_kill_npc(), Usecode_internal::UI_lightning(), Usecode_internal::UI_mark_virtue_stone(), Usecode_internal::UI_modify_schedule(), Usecode_internal::UI_move_object(), Usecode_internal::UI_nap_time(), Usecode_internal::UI_NOP(), Usecode_internal::UI_obj_sprite_effect(), Usecode_internal::UI_play_music(), Usecode_internal::UI_play_sound_effect(), Usecode_internal::UI_play_sound_effect2(), Usecode_internal::UI_pop_answers(), Usecode_internal::UI_push_answers(), Usecode_internal::UI_recall_virtue_stone(), Usecode_internal::UI_reduce_health(), Usecode_internal::UI_remove_answer(), Usecode_internal::UI_remove_from_area(), Usecode_internal::UI_remove_from_party(), Usecode_internal::UI_remove_item(), Usecode_internal::UI_remove_npc(), Usecode_internal::UI_remove_npc_face(), Usecode_internal::UI_remove_npc_face0(), Usecode_internal::UI_remove_npc_face1(), Usecode_internal::UI_restart_game(), Usecode_internal::UI_revert_schedule(), Usecode_internal::UI_run_endgame(), Usecode_internal::UI_run_schedule(), Usecode_internal::UI_save_pos(), Usecode_internal::UI_set_alignment(), Usecode_internal::UI_set_attack_mode(), Usecode_internal::UI_set_barge_dir(), Usecode_internal::UI_set_camera(), Usecode_internal::UI_set_conversation_slot(), Usecode_internal::UI_set_intercept_item(), Usecode_internal::UI_set_item_flag(), Usecode_internal::UI_set_item_frame(), Usecode_internal::UI_set_item_frame_rot(), Usecode_internal::UI_set_item_shape(), Usecode_internal::UI_set_lift(), Usecode_internal::UI_set_new_schedules(), Usecode_internal::UI_set_npc_id(), Usecode_internal::UI_set_opponent(), Usecode_internal::UI_set_oppressor(), Usecode_internal::UI_set_path_failure(), Usecode_internal::UI_set_polymorph(), Usecode_internal::UI_set_schedule_type(), Usecode_internal::UI_set_temperature(), Usecode_internal::UI_set_timer(), Usecode_internal::UI_set_weather(), Usecode_internal::UI_show_npc_face(), Usecode_internal::UI_show_npc_face0(), Usecode_internal::UI_show_npc_face1(), Usecode_internal::UI_si_display_map(), Usecode_internal::UI_si_path_run_usecode(), Usecode_internal::UI_sit_down(), Usecode_internal::UI_sprite_effect(), Usecode_internal::UI_stop_time(), Usecode_internal::UI_telekenesis(), Usecode_internal::UI_teleport_to_saved_pos(), Usecode_internal::UI_UNKNOWN(), and Usecode_internal::UI_wizard_eye().
int usecode_trace |