Pol  Revision:4b29d2b
itemdesc.cpp File Reference
#include "itemdesc.h"
#include <ctype.h>
#include <iosfwd>
#include <stdlib.h>
#include <string.h>
#include "../../bscript/bobject.h"
#include "../../bscript/bstruct.h"
#include "../../bscript/dict.h"
#include "../../bscript/impstr.h"
#include "../../clib/cfgelem.h"
#include "../../clib/cfgfile.h"
#include "../../clib/esignal.h"
#include "../../clib/fileutil.h"
#include "../../clib/logfacility.h"
#include "../../clib/passert.h"
#include "../../clib/stlutil.h"
#include "../../clib/strutil.h"
#include "../../plib/mapcell.h"
#include "../../plib/pkg.h"
#include "../../plib/systemstate.h"
#include "../clidata.h"
#include "../dice.h"
#include "../extobj.h"
#include "../globals/settings.h"
#include "../globals/uvars.h"
#include "../multi/multidef.h"
#include "../pktdef.h"
#include "../proplist.h"
#include "../resource.h"
#include "../syshookscript.h"
#include "../uconst.h"
#include "../uobject.h"
#include "armrtmpl.h"
#include "wepntmpl.h"
#include <format/format.h>

Go to the source code of this file.

Namespaces

 Pol
 
 Pol::Items
 

Functions

const ItemDesc * Pol::Items::CreateItemDescriptor (Bscript::BStruct *itemdesc_struct)
 
const DoorDesc & Pol::Items::fast_find_doordesc (u32 objtype)
 
const ContainerDesc & Pol::Items::find_container_desc (u32 objtype)
 
const ItemDesc & Pol::Items::find_itemdesc (unsigned int objtype)
 
const MultiDesc & Pol::Items::find_multidesc (u32 objtype)
 
unsigned int Pol::Items::get_objtype_byname (const char *str)
 
unsigned int Pol::Items::get_objtype_from_string (const std::string &str)
 
unsigned short Pol::Items::getcolor (unsigned int objtype)
 
unsigned short Pol::Items::getgraphic (u32 objtype)
 
bool Pol::Items::has_itemdesc (u32 objtype)
 
void Pol::Items::load_itemdesc ()
 
void Pol::Items::load_package_itemdesc (Plib::Package *pkg)
 
bool Pol::Items::objtype_is_lockable (u32 objtype)
 
void Pol::Items::read_itemdesc_file (const char *filename, Plib::Package *pkg=nullptr)
 
void Pol::Items::remove_resources (u32 objtype, u16)
 
void Pol::Items::return_resources (u32 objtype, u16)
 
void Pol::Items::unload_itemdesc ()
 
void Pol::Items::write_objtypes_txt ()
 

Detailed Description

History
  • 2005/02/14 Shinigami: find_container_desc - fixed passert condition
  • 2005/12/07 MuadDib: Changed "has already been specified for objtype" to "is the same as objtype" for easier non-english understanding.
  • 2006/05/19 MuadDib: Removed read_itemdesc_file( "config/wepndesc.cfg" ); line, due to no longer being used by ANYTHING in the core. So no longer will require this file to run POL. Same with config/armrdesc.cfg
  • 2009/08/25 Shinigami: STLport-5.2.1 fix: init order changed of max_slots
  • 2009/09/03 MuadDib: Relocation of multi related cpp/h
  • 2009/12/02 Turley: added config.max_tile_id - Tomi

Definition in file itemdesc.cpp.