ScummVM API documentation
Ultima::Nuvie::Script Class Reference

Public Member Functions

 Script (Configuration *cfg, GUI *gui, SoundManager *sm, nuvie_game_t type)
 
bool init ()
 
Configurationget_config ()
 
SoundManagerget_sound_manager ()
 
bool run_script (const char *script)
 
bool call_load_game (NuvieIO *objlist)
 
bool call_save_game (NuvieIO *objlist)
 
bool play_cutscene (const char *script_file)
 
MovementStatus call_player_before_move_action (sint16 *rel_x, sint16 *rel_y)
 
bool call_player_post_move_action (bool didMove)
 
bool call_player_pass ()
 
bool call_actor_update_all ()
 
bool call_actor_init (Actor *actor, ActorAlignment alignment)
 
bool call_actor_attack (Actor *actor, MapCoord location, Obj *weapon, Actor *foe)
 
bool call_actor_map_dmg (Actor *actor, MapCoord location)
 
bool call_actor_tile_dmg (Actor *actor, uint16 tile_num)
 
bool call_actor_hit (Actor *actor, uint8 dmg, bool display_hit_msg=false)
 
uint8 call_actor_str_adj (Actor *actor)
 
uint8 call_actor_dex_adj (Actor *actor)
 
uint8 call_actor_int_adj (Actor *actor)
 
bool call_look_obj (Obj *obj)
 
int call_obj_get_readiable_location (Obj *obj)
 
uint8 actor_get_max_magic_points (const Actor *actor)
 
bool call_actor_get_obj (Actor *actor, Obj *obj, Obj *container=nullptr)
 
bool call_actor_subtract_movement_points (Actor *actor, uint8 points)
 
bool call_actor_resurrect (Actor *actor)
 
bool call_use_keg (Obj *obj)
 
bool call_has_usecode (Obj *obj, UseCodeEvent usecode_type)
 
ScriptThreadcall_use_obj (Obj *obj, Actor *actor)
 
bool call_ready_obj (Obj *obj, Actor *actor)
 
bool call_move_obj (Obj *obj, sint16 rel_x, sint16 rel_y)
 
bool call_handle_alt_code (uint16 altcode)
 
bool call_magic_get_spell_list (Spell **spell_list)
 
bool call_actor_use_effect (Obj *effect_obj, Actor *actor)
 
bool call_function (const char *func_name, int num_args, int num_return, bool print_stacktrace=true) const
 
ScriptThreadcall_function_in_thread (const char *function_name)
 
bool run_lua_file (const char *filename)
 
bool call_moonstone_set_loc (uint8 phase, MapCoord location)
 
bool call_advance_time (uint16 minutes)
 
bool call_can_get_obj_override (Obj *obj) const
 
bool call_out_of_ammo (Actor *attacker, Obj *weapon, bool print_message)
 
bool call_is_avatar_dead ()
 
bool call_is_ranged_select (UseCodeType operation)
 
bool call_set_g_show_stealing (bool stealing)
 
uint8 call_get_combat_range (uint16 absx, uint16 absy)
 
uint8 call_get_weapon_range (uint16 obj_n)
 
MapCoord call_moonstone_get_loc (uint8 phase)
 
bool call_update_moongates (bool visible)
 
uint8 call_play_midgame_sequence (uint16 seq_num)
 
bool call_talk_script (uint8 script_number)
 
bool call_talk_to_obj (Obj *obj)
 
bool call_talk_to_actor (Actor *actor)
 
bool call_is_container_obj (uint16 obj_n)
 
uint8 call_get_portrait_number (Actor *actor)
 
bool call_player_attack ()
 
uint16 call_get_tile_to_object_mapping (uint16 tile_n)
 
bool call_is_tile_object (uint16 obj_n)
 
ScriptThreadnew_thread (const char *scriptfile)
 
ScriptThreadnew_thread_from_string (const char *script)
 

Static Public Member Functions

static Scriptget_script ()
 

Protected Member Functions

bool call_loadsave_game (const char *function, NuvieIO *objlist)
 
void seed_random ()
 

The documentation for this class was generated from the following file: