ScummVM API documentation
Ultima::Nuvie::UseCode Class Reference
Inheritance diagram for Ultima::Nuvie::UseCode:
Ultima::Nuvie::U6UseCode

Public Member Functions

 UseCode (Game *g, const Configuration *cfg)
 
virtual bool init (ObjManager *om, Map *m, Player *p, MsgScroll *ms)
 
bool use_obj (uint16 x, uint16 y, uint8 z, Obj *src_obj=nullptr)
 
bool use_obj (Obj *obj, Obj *src_obj=nullptr)
 
virtual bool use_obj (Obj *obj, Actor *actor)
 
virtual bool look_obj (Obj *obj, Actor *actor)
 
virtual bool pass_obj (Obj *obj, Actor *actor, uint16 x, uint16 y)
 
virtual bool search_obj (Obj *obj, Actor *actor)
 
virtual bool move_obj (Obj *obj, sint16 rel_x, sint16 rel_y)
 
virtual bool load_obj (Obj *obj)
 
virtual bool message_obj (Obj *obj, CallbackMessage msg, void *msg_data)
 
virtual bool ready_obj (Obj *obj, Actor *actor)
 
virtual bool get_obj (Obj *obj, Actor *actor)
 
virtual bool drop_obj (Obj *obj, Actor *actor, uint16 x, uint16 y, uint16 qty=0)
 
virtual bool has_usecode (Obj *obj, UseCodeEvent ev=0x01)
 
virtual bool has_usecode (Actor *actor, UseCodeEvent ev=0x01)
 
virtual bool has_lookcode (Obj *obj)
 
virtual bool has_passcode (Obj *obj)
 
virtual bool has_movecode (Obj *obj)
 
virtual bool has_loadcode (Obj *obj)
 
virtual bool has_readycode (Obj *obj)
 
virtual bool cannot_unready (const Obj *obj) const
 
virtual bool has_getcode (Obj *obj)
 
virtual bool has_dropcode (Obj *obj)
 
bool is_door (const Obj *obj) const
 
virtual bool is_locked_door (const Obj *obj) const
 
virtual bool is_unlocked_door (const Obj *obj) const
 
virtual bool is_closed_door (const Obj *obj) const
 
virtual bool process_effects (Obj *container_obj, Actor *actor)
 
virtual bool is_food (const Obj *obj) const
 
virtual bool is_container (const Obj *obj) const
 
virtual bool is_container (uint16 obj_n, uint8 frame_n) const
 
virtual bool is_readable (const Obj *obj) const
 
virtual bool is_chest (const Obj *obj) const
 
void set_itemref (sint32 *val)
 
void set_itemref (Obj *val)
 
void set_itemref (Actor *val, Actor *val2=nullptr)
 
void set_itemref (MapCoord *val)
 
Objget_obj_from_container (Obj *obj)
 
bool search_container (Obj *obj, bool show_string=true)
 
Objdestroy_obj (Obj *obj, uint32 count=0, bool run_usecode=true)
 
bool out_of_use_range (Obj *obj, bool check_enemies)
 
ScriptThreadget_running_script ()
 
bool is_script_running ()
 

Protected Member Functions

void clear_items ()
 
void toggle_frame (Obj *obj)
 
void dbg_print_event (UseCodeEvent event, Obj *obj)
 

Protected Attributes

Gamegame
 
const Configurationconfig
 
ObjManagerobj_manager
 
Mapmap
 
Playerplayer
 
MsgScrollscroll
 
ActorManageractor_manager
 
Partyparty
 
Scriptscript
 
struct {
   uint32 *   uint_ref
 
   sint32 *   sint_ref
 
   Obj *   obj_ref
 
   Actor *   actor_ref
 
   Actor *   actor2_ref
 
   MapCoord *   mapcoord_ref
 
   CallbackMessage *   msg_ref
 
   Std::string *   string_ref
 
   MapEntity *   ent_ref
 
   char *   data_ref
 
items
 

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