ItemFactory Class Reference

#include <ItemFactory.h>

List of all members.

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)


Detailed Description

Definition at line 27 of file ItemFactory.h.


Member Function Documentation

Actor * 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

Definition at line 153 of file ItemFactory.cpp.

References Actor::assignObjId(), Item::EXT_LERP_NOPREV, Item::extendedflags, Item::flags, Item::frame, Item::mapnum, Item::npcnum, Object::objid, Item::quality, and Item::setShape().

Referenced by Actor::createActor(), MonsterEgg::hatch(), World::loadItemCachNPCData(), and RemorseGame::startGame().

Item * 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

Definition at line 36 of file ItemFactory.cpp.

References Container::assignObjId(), Object::assignObjId(), Item::EXT_LERP_NOPREV, Item::extendedflags, ShapeInfo::family, Item::flags, Item::frame, GameData::get_instance(), GameData::getMainShapes(), Item::mapnum, Item::npcnum, Item::quality, Item::setShape(), ShapeInfo::SF_15, ShapeInfo::SF_BREAKABLE, ShapeInfo::SF_CONTAINER, ShapeInfo::SF_GENERIC, ShapeInfo::SF_GLOBEGG, ShapeInfo::SF_MONSTEREGG, ShapeInfo::SF_QUALITY, ShapeInfo::SF_QUANTITY, ShapeInfo::SF_REAGENT, ShapeInfo::SF_TELEPORTEGG, and ShapeInfo::SF_UNKEGG.

Referenced by U8Game::ConCmd_cheatEquip(), U8Game::ConCmd_cheatItems(), Actor::die(), ContainerGump::DropItem(), GlobEgg::enterFastArea(), Actor::giveTreasure(), SpriteProcess::init(), Map::loadFixed(), Map::loadFixedFormatObjects(), FireballProcess::run(), CreateItemProcess::run(), and U8Game::startGame().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:29:29 2007 for pentagram by  doxygen 1.4.7