ScummVM API documentation
Ultima::Ultima8::ItemFactory Class Reference

Static Public Member Functions

static ItemcreateItem (uint32 shape, uint32 frame, uint16 quality, uint16 flags, uint16 npcnum, uint16 mapnum, uint32 extendedflags, bool objid)
 
static ActorcreateActor (uint32 shape, uint32 frame, uint16 quality, uint16 flags, uint16 npcnum, uint16 mapnum, uint32 extendedflags, bool objid)
 

Member Function Documentation

◆ createItem()

static Item* Ultima::Ultima8::ItemFactory::createItem ( uint32  shape,
uint32  frame,
uint16  quality,
uint16  flags,
uint16  npcnum,
uint16  mapnum,
uint32  extendedflags,
bool  objid 
)
static

create an item. look up (where?) what type of item the given shape is, and create an instance of the corresponding Item class. If objid is set, assign item an objectid

◆ createActor()

static Actor* Ultima::Ultima8::ItemFactory::createActor ( uint32  shape,
uint32  frame,
uint16  quality,
uint16  flags,
uint16  npcnum,
uint16  mapnum,
uint32  extendedflags,
bool  objid 
)
static

create an actor. If objid is set, assign actor an actor-objid


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