#include <ucmachine.h>
Inheritance diagram for Usecode_machine:


Public Types | |
| enum | Usecode_events { npc_proximity = 0, double_click = 1, internal_exec = 2, egg_proximity = 3, weapon = 4, readied = 5, unreadied = 6, died = 7, chat = 9 } |
| enum | Global_flag_names { did_first_scene = 0x3b, have_trinsic_password = 0x3d, found_stable_key = 0x48, left_trinsic = 0x57, avatar_is_thief = 0x2eb } |
Public Member Functions | |
| Usecode_machine () | |
| virtual | ~Usecode_machine () |
| virtual void | read_usecode (std::istream &file, bool patch=false)=0 |
| int | get_global_flag (int i) |
| void | set_global_flag (int i, int val=1) |
| virtual void | do_speech (int num)=0 |
| virtual int | in_usecode ()=0 |
| Keyring * | getKeyring () const |
| virtual int | call_usecode (int id, Game_object *obj, Usecode_events event)=0 |
| virtual void | write ()=0 |
| virtual void | read ()=0 |
| void | init_conversation () |
| int | get_num_faces_on_screen () const |
| virtual void | intercept_click_on_item (Game_object *obj)=0 |
Static Public Member Functions | |
| static Usecode_machine * | create () |
Protected Attributes | |
| unsigned char | gflags [1024] |
| Keyring * | keyring |
| Conversation * | conv |
Private Member Functions | |
| UNREPLICATABLE_CLASS (Usecode_machine) | |
Friends | |
| class | Usecode_script |
Definition at line 43 of file ucmachine.h.
| npc_proximity | |
| double_click | |
| internal_exec | |
| egg_proximity | |
| weapon | |
| readied | |
| unreadied | |
| died | |
| chat |
Definition at line 59 of file ucmachine.h.
Definition at line 70 of file ucmachine.h.
| Usecode_machine::Usecode_machine | ( | ) |
Definition at line 32 of file ucmachine.cc.
| Usecode_machine::~Usecode_machine | ( | ) | [virtual] |
Definition at line 46 of file ucmachine.cc.
| Usecode_machine::UNREPLICATABLE_CLASS | ( | Usecode_machine | ) | [private] |
| Usecode_machine * Usecode_machine::create | ( | ) | [static] |
Definition at line 1618 of file ucinternal.cc.
References Usecode_internal::Usecode_internal().
Referenced by Game_window::init_files().
Here is the call graph for this function:

| virtual void Usecode_machine::read_usecode | ( | std::istream & | file, | |
| bool | patch = false | |||
| ) | [pure virtual] |
Implemented in Usecode_internal.
| int Usecode_machine::get_global_flag | ( | int | i | ) | [inline] |
| void Usecode_machine::set_global_flag | ( | int | i, | |
| int | val = 1 | |||
| ) | [inline] |
| virtual void Usecode_machine::do_speech | ( | int | num | ) | [pure virtual] |
Implemented in Usecode_internal.
| virtual int Usecode_machine::in_usecode | ( | ) | [pure virtual] |
| Keyring* Usecode_machine::getKeyring | ( | ) | const [inline] |
| virtual int Usecode_machine::call_usecode | ( | int | id, | |
| Game_object * | obj, | |||
| Usecode_events | event | |||
| ) | [pure virtual] |
Implemented in Usecode_internal.
Referenced by Spellbook_object::execute_spell(), and Usecode_actor_action::handle_event().
| virtual void Usecode_machine::write | ( | ) | [pure virtual] |
Implemented in Usecode_internal.
| virtual void Usecode_machine::read | ( | ) | [pure virtual] |
Implemented in Usecode_internal.
| void Usecode_machine::init_conversation | ( | ) |
Definition at line 53 of file ucmachine.cc.
References conv, and Conversation::init_faces().
Here is the call graph for this function:

| int Usecode_machine::get_num_faces_on_screen | ( | ) | const |
Definition at line 58 of file ucmachine.cc.
References conv, and Conversation::get_num_faces_on_screen().
Here is the call graph for this function:

| virtual void Usecode_machine::intercept_click_on_item | ( | Game_object * | obj | ) | [pure virtual] |
friend class Usecode_script [friend] |
unsigned char Usecode_machine::gflags[1024] [protected] |
Definition at line 47 of file ucmachine.h.
Referenced by get_global_flag(), Usecode_internal::run(), set_global_flag(), and Usecode_internal::uc_trace_disasm().
Keyring* Usecode_machine::keyring [protected] |
Conversation* Usecode_machine::conv [protected] |
Definition at line 49 of file ucmachine.h.
Referenced by Usecode_internal::click_to_continue(), get_num_faces_on_screen(), Usecode_internal::get_user_choice(), Usecode_internal::get_user_choice_num(), and init_conversation().
1.5.1