Pol  Revision:cb584c9
Pol::Core::ScriptDef Class Reference

#include <scrdef.h>

Public Member Functions

 ScriptDef ()
 
 ScriptDef (const std::string &name, const Plib::Package *pkg, const char *mainpfx)
 
 ScriptDef (const std::string &name, const Plib::Package *pkg)
 
const char * c_str () const
 
void clear ()
 
void config (const std::string &name, const Plib::Package *pkg, const char *mainpfx, bool warn_if_not_found=true)
 
void config (const std::string &name, const Plib::Package *pkg)
 
bool config_nodie (const std::string &name, const Plib::Package *pkg, const char *mainpfx)
 
bool empty () const
 
size_t estimatedSize () const
 
bool exists () const
 
const std::string & name () const
 
bool operator!= (const ScriptDef &other) const
 
bool operator== (const ScriptDef &other) const
 
const Plib::Packagepkg () const
 
void quickconfig (const Plib::Package *pkg, const std::string &name_ecl)
 
void quickconfig (const std::string &name_ecl)
 
std::string relativename (const Plib::Package *pkg=nullptr) const
 

Private Attributes

boost_utils::script_name_flystring localname_
 
boost_utils::script_name_flystring name_
 
const Plib::Packagepkg_
 

Detailed Description

Definition at line 23 of file scrdef.h.

Constructor & Destructor Documentation

Pol::Core::ScriptDef::ScriptDef ( )
inline

Definition at line 26 of file scrdef.h.

References name, operator!=(), and operator==().

Referenced by estimatedSize().

Pol::Core::ScriptDef::ScriptDef ( const std::string &  name,
const Plib::Package pkg,
const char *  mainpfx 
)

Definition at line 33 of file scrdef.cpp.

References config().

Pol::Core::ScriptDef::ScriptDef ( const std::string &  name,
const Plib::Package pkg 
)

Definition at line 38 of file scrdef.cpp.

References config().

Member Function Documentation

const char* Pol::Core::ScriptDef::c_str ( ) const
inline
void Pol::Core::ScriptDef::clear ( )

Definition at line 133 of file scrdef.cpp.

References localname_, name_, and pkg_.

Referenced by Pol::Items::UWeapon::set_hit_script(), and Pol::Items::UArmor::set_onhitscript().

void Pol::Core::ScriptDef::config ( const std::string &  name,
const Plib::Package pkg,
const char *  mainpfx,
bool  warn_if_not_found = true 
)
void Pol::Core::ScriptDef::config ( const std::string &  name,
const Plib::Package pkg 
)

Definition at line 79 of file scrdef.cpp.

References config().

bool Pol::Core::ScriptDef::operator!= ( const ScriptDef other) const

Definition at line 50 of file scrdef.cpp.

bool Pol::Core::ScriptDef::operator== ( const ScriptDef other) const

Definition at line 43 of file scrdef.cpp.

References empty(), name_, and pkg_.

const Plib::Package* Pol::Core::ScriptDef::pkg ( ) const
inline

Definition at line 46 of file scrdef.h.

Referenced by Pol::Core::find_script2(), and quickconfig().

void Pol::Core::ScriptDef::quickconfig ( const std::string &  name_ecl)

Definition at line 119 of file scrdef.cpp.

References localname_, name_, and pkg_.

Member Data Documentation

boost_utils::script_name_flystring Pol::Core::ScriptDef::localname_
private

Definition at line 53 of file scrdef.h.

Referenced by clear(), config(), config_nodie(), quickconfig(), and relativename().

boost_utils::script_name_flystring Pol::Core::ScriptDef::name_
private

Definition at line 54 of file scrdef.h.

Referenced by clear(), config(), config_nodie(), operator==(), quickconfig(), and relativename().

const Plib::Package* Pol::Core::ScriptDef::pkg_
private

Definition at line 55 of file scrdef.h.

Referenced by clear(), config(), config_nodie(), operator==(), quickconfig(), and relativename().


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