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

Public Member Functions

 Obj (Obj *sobj)
 
bool is_script_obj () const
 
bool is_actor_obj () const
 
bool is_ok_to_take () const
 
bool is_invisible () const
 
bool is_charmed () const
 
bool is_temporary () const
 
bool is_egg_active () const
 
bool is_broken () const
 
bool is_mutant () const
 
bool is_cursed () const
 
bool is_lit () const
 
bool is_on_map () const
 
bool is_in_container () const
 
bool is_in_inventory (bool check_parent=true) const
 
bool is_readied () const
 
bool has_container () const
 
void make_container ()
 
Objget_container_obj (bool recursive=false)
 
uint32 container_count_objects () const
 
uint8 get_engine_loc () const
 
Actorget_actor_holding_obj ()
 
void set_on_map (U6LList *map_list)
 
void set_in_container (Obj *container_obj)
 
void set_in_inventory ()
 
void set_invisible (bool flag)
 
void set_temporary (bool flag=true)
 
void set_ok_to_take (bool flag, bool recursive=false)
 
void readied ()
 
void set_noloc ()
 
void set_in_script (bool flag)
 
void set_actor_obj (bool flag)
 
void add (Obj *obj, bool stack=false, bool addAtTail=false)
 
bool remove (Obj *obj)
 
Objfind_in_container (uint16 obj_n, uint8 quality, bool match_quality=true, uint8 frame_n=0, bool match_frame_n=false, Obj **prev_obj=nullptr) const
 
uint32 get_total_qty (uint16 match_obj_n)
 

Public Attributes

uint16 obj_n
 
uint8 frame_n
 
uint8 status
 
uint16 x
 
uint16 y
 
uint8 z
 
uint16 qty
 
uint8 quality
 
void * parent
 
U6LListcontainer
 

Protected Member Functions

void add_and_stack (Obj *obj, bool addAtTail=false)
 

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