Pol  Rev 533
ScriptDef Class Reference

#include <scrdef.h>

+ Collaboration diagram for ScriptDef:

List of all members.

Public Member Functions

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

Private Attributes

std::string localname_
std::string name_
const Packagepkg_

Detailed Description

Definition at line 18 of file scrdef.h.


Constructor & Destructor Documentation

ScriptDef::ScriptDef ( ) [inline]

Definition at line 21 of file scrdef.h.

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

Definition at line 38 of file scrdef.cpp.

References config().

+ Here is the call graph for this function:

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

Definition at line 43 of file scrdef.cpp.

References config().

+ Here is the call graph for this function:


Member Function Documentation

const char* ScriptDef::c_str ( ) const [inline]

Definition at line 41 of file scrdef.h.

References name_.

Referenced by exists(), find_script2(), OSExecutorModule::start_skill_script(), and StartSkillScript().

+ Here is the caller graph for this function:

void ScriptDef::clear ( )

Definition at line 140 of file scrdef.cpp.

References localname_, name_, and pkg_.

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

+ Here is the caller graph for this function:

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

Definition at line 57 of file scrdef.cpp.

References empty(), exists(), full_scriptname(), localname_, name_, pkg_, and pkgdef_split().

Referenced by config(), ExportScript::ExportScript(), Item::run_equip_script(), Item::run_unequip_script(), ScriptDef(), UWeapon::set_hit_script(), and UArmor::set_onhitscript().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ScriptDef::config ( const std::string &  name,
const Package pkg 
)

Definition at line 83 of file scrdef.cpp.

References config().

+ Here is the call graph for this function:

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

Definition at line 48 of file scrdef.cpp.

References empty(), name_, and pkg_.

+ Here is the call graph for this function:

const Package* ScriptDef::pkg ( ) const [inline]

Definition at line 45 of file scrdef.h.

References pkg_.

Referenced by find_script2(), and quickconfig().

+ Here is the caller graph for this function:

void ScriptDef::quickconfig ( const Package pkg,
const std::string &  name_ecl 
)

Definition at line 118 of file scrdef.cpp.

References Package::dir(), localname_, name_, pkg(), and pkg_.

Referenced by call_chr_scripts(), can_delete_character(), Item::check_test_scripts(), client_io_thread(), doubleclick(), exec_console_cmd(), get_script_page_filename(), preload_test_scripts(), skillrequest(), start_http_script(), and start_textcmd_script().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 126 of file scrdef.cpp.

References localname_, name_, and pkg_.

string ScriptDef::relativename ( const Package pkg = NULL) const

Member Data Documentation

std::string ScriptDef::localname_ [private]

Definition at line 52 of file scrdef.h.

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

std::string ScriptDef::name_ [private]

Definition at line 53 of file scrdef.h.

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

const Package* ScriptDef::pkg_ [private]

Definition at line 54 of file scrdef.h.

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


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