ScummVM API documentation
Ultima::Ultima8::Object Class Reference
Inheritance diagram for Ultima::Ultima8::Object:
Ultima::Ultima8::Gump Ultima::Ultima8::Item Ultima::Ultima8::ButtonWidget Ultima::Ultima8::CruPickupAreaGump Ultima::Ultima8::CruPickupGump Ultima::Ultima8::CruStatusGump Ultima::Ultima8::DesktopGump Ultima::Ultima8::EditWidget Ultima::Ultima8::FastAreaVisGump Ultima::Ultima8::GameMapGump Ultima::Ultima8::ItemRelativeGump Ultima::Ultima8::MiniStatsGump Ultima::Ultima8::ModalGump Ultima::Ultima8::ResizableGump Ultima::Ultima8::SlidingWidget Ultima::Ultima8::TextWidget Ultima::Ultima8::TranslucentGump Ultima::Ultima8::U8SaveGump Ultima::Ultima8::Container Ultima::Ultima8::Egg Ultima::Ultima8::GlobEgg Ultima::Ultima8::MonsterEgg

Public Member Functions

ObjId getObjId () const
 get this Object's objID
 
virtual ObjId assignObjId ()
 
virtual void clearObjId ()
 Clear objID of self and contents (if any)
 
virtual Common::String dumpInfo () const
 dump some info about this object to a string
 
ProcId callUsecode (uint16 classid, uint16 offset, const uint8 *args=0, int argsize=0)
 
bool loadData (Common::ReadStream *rs, uint32 version)
 
virtual void saveData (Common::WriteStream *ws)
 

Protected Attributes

ObjId _objId
 

Member Function Documentation

◆ assignObjId()

virtual ObjId Ultima::Ultima8::Object::assignObjId ( )
virtual

Assign self and contents (if any) an objID

Returns
the assiged ID

Reimplemented in Ultima::Ultima8::Actor, and Ultima::Ultima8::Container.

◆ callUsecode()

ProcId Ultima::Ultima8::Object::callUsecode ( uint16  classid,
uint16  offset,
const uint8 *  args = 0,
int  argsize = 0 
)

Spawn a usecode function on this object

Parameters
classidThe usecode class to run
offsetThe offset in that class to run
uThe Usecode object containing the class
argsOptional arguments to the spawned process
argsizeThe size (in bytes) of the optional arguments
Returns
the PID of the spawned process

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