Pol  Revision:cb584c9
Pol::Core::GameState Class Reference

#include <uvars.h>

+ Inheritance diagram for Pol::Core::GameState:

Classes

struct  Memory
 

Public Member Functions

 GameState ()
 
 ~GameState ()
 
void deinitialize ()
 
Memory estimateSize () const
 

Public Attributes

AccountsVector accounts
 
std::map< std::string, MobileTranslateanimation_translates
 
double armor_zone_chance_sum
 
ArmorZones armorzones
 
std::vector< Mobile::Attribute * > attributes
 
AttributesByName attributes_byname
 
unsigned int baserealm_count
 
BoatShapes boatshapes
 
CmdLevels cmdlevels
 
std::vector< ConsoleCommandconsole_commands
 
std::map< u32, Items::ItemDesc * > desctable
 
std::vector< Items::ItemDesc * > dynamic_item_descriptors
 
std::unique_ptr< Items::ItemDescempty_itemdesc
 
std::vector< ExportScript * > export_scripts
 
PropSet Global_Ignore_CProps
 
std::unique_ptr< Core::PropertyListglobal_properties
 
Guilds guilds
 
IntrinsicEquipments intrinsic_equipments
 
JusticeDefjusticedef
 
std::array< LandTile, LANDTILE_COUNTlandtiles
 
bool landtiles_loaded
 
LightDeflightdef
 
ListenPoints listen_points
 
Realms::Realmmain_realm
 
std::vector< Menumenus
 
std::map< std::string, std::string > mime_types
 
UACTION mount_action_xlate [ACTION__HIGHEST+1]
 
MusicDefmusicdef
 
unsigned int nextguildid
 
NoCastDefnocastdef
 
NpcTemplatesElems npc_template_elems
 
NpcTemplates npc_templates
 
unsigned numAttributes
 
unsigned numVitals
 
ObjtypeByNameMap objtype_byname
 
OldObjtypeConversions old_objtype_conversions
 
ParamTextCmds paramtextcmds
 
Parties parties
 
const Mobile::AttributepAttrDexterity
 
const Mobile::AttributepAttrIntelligence
 
const Mobile::AttributepAttrParry
 
const Mobile::AttributepAttrStrength
 
const Mobile::AttributepAttrTactics
 
const VitalpVitalLife
 
const VitalpVitalMana
 
const VitalpVitalStamina
 
std::vector< Realms::Realm * > Realms
 
std::unique_ptr< PeriodicTaskregen_resources_task
 
std::unique_ptr< PeriodicTaskregen_stats_task
 
std::unique_ptr< PeriodicTaskreload_accounts_task
 
std::unique_ptr< PeriodicTaskreload_pol_cfg_task
 
ResourceDefs resourcedefs
 
unsigned int shadowrealm_count
 
std::map< int, Realms::Realm * > shadowrealms_by_id
 
std::array< std::array< u32, 2 >, 8 > spell_scroll_objtype_limits
 
std::vector< SpellCircle * > spellcircles
 
std::vector< USpell * > spells
 
StartingLocations startlocations
 
Storage storage
 
SystemHooks system_hooks
 
Cursors target_cursors
 
TaskQueue task_queue
 
threadhelp::TaskThreadPool task_thread_pool
 
std::unique_ptr< Items::ItemDesctemp_itemdesc
 
TextCmds textcmds
 
std::vector< std::string > tipfilenames
 
std::vector< UOSkilluo_skills
 
std::unique_ptr< PeriodicTaskupdate_rpm_task
 
std::unique_ptr< PeriodicTaskupdate_sysload_task
 
std::vector< Vital * > vitals
 
VitalsByName vitals_byname
 
WeatherDefweatherdef
 
Items::UWeaponwrestling_weapon
 
std::unique_ptr< PeriodicTaskwrite_account_task
 
Plib::Packagewwwroot_pkg
 

Private Member Functions

void cleanup_scripts ()
 
void cleanup_vars ()
 
void clear_listen_points ()
 
void unload_intrinsic_templates ()
 
void unload_intrinsic_weapons ()
 
void unload_npc_templates ()
 

Detailed Description

Definition at line 126 of file uvars.h.

Constructor & Destructor Documentation

Pol::Core::GameState::~GameState ( )

Definition at line 176 of file uvars.cpp.

References Pol::Core::display_leftover_objects().

Member Function Documentation

void Pol::Core::GameState::cleanup_scripts ( )
private

Definition at line 357 of file uvars.cpp.

References Pol::Core::ScriptScheduler::deinitialize(), and Pol::Core::scriptScheduler.

Referenced by deinitialize().

void Pol::Core::GameState::clear_listen_points ( )
private

Definition at line 362 of file uvars.cpp.

References listen_points.

Referenced by deinitialize().

void Pol::Core::GameState::unload_intrinsic_templates ( )
private

Definition at line 382 of file uvars.cpp.

References intrinsic_equipments.

Referenced by deinitialize().

void Pol::Core::GameState::unload_intrinsic_weapons ( )
private

Definition at line 373 of file uvars.cpp.

References Pol::Core::UObject::destroy(), and wrestling_weapon.

Referenced by deinitialize().

void Pol::Core::GameState::unload_npc_templates ( )
private

Definition at line 396 of file uvars.cpp.

References npc_template_elems, and npc_templates.

Referenced by deinitialize().

Member Data Documentation

std::map<std::string, MobileTranslate> Pol::Core::GameState::animation_translates

Definition at line 218 of file uvars.h.

Referenced by deinitialize(), estimateSize(), GameState(), and Pol::Core::load_anim_xlate_cfg().

double Pol::Core::GameState::armor_zone_chance_sum
AttributesByName Pol::Core::GameState::attributes_byname
unsigned int Pol::Core::GameState::baserealm_count

Definition at line 165 of file uvars.h.

Referenced by Pol::Core::load_realms().

std::map<u32, Items::ItemDesc*> Pol::Core::GameState::desctable
std::vector<Items::ItemDesc*> Pol::Core::GameState::dynamic_item_descriptors
std::unique_ptr<Items::ItemDesc> Pol::Core::GameState::empty_itemdesc
std::vector<ExportScript*> Pol::Core::GameState::export_scripts
std::array<LandTile, LANDTILE_COUNT> Pol::Core::GameState::landtiles
bool Pol::Core::GameState::landtiles_loaded
std::vector<Menu> Pol::Core::GameState::menus
std::map<std::string, std::string> Pol::Core::GameState::mime_types
UACTION Pol::Core::GameState::mount_action_xlate[ACTION__HIGHEST+1]
unsigned int Pol::Core::GameState::nextguildid
NoCastDef* Pol::Core::GameState::nocastdef
NpcTemplatesElems Pol::Core::GameState::npc_template_elems
NpcTemplates Pol::Core::GameState::npc_templates
unsigned Pol::Core::GameState::numAttributes
unsigned Pol::Core::GameState::numVitals
ObjtypeByNameMap Pol::Core::GameState::objtype_byname
OldObjtypeConversions Pol::Core::GameState::old_objtype_conversions
ParamTextCmds Pol::Core::GameState::paramtextcmds
const Mobile::Attribute* Pol::Core::GameState::pAttrTactics

Definition at line 183 of file uvars.h.

Referenced by Pol::Mobile::load_attributes_cfg().

const Vital* Pol::Core::GameState::pVitalLife

Definition at line 199 of file uvars.h.

Referenced by GameState(), and Pol::Core::load_vitals_cfg().

const Vital* Pol::Core::GameState::pVitalMana
const Vital* Pol::Core::GameState::pVitalStamina

Definition at line 200 of file uvars.h.

Referenced by GameState(), and Pol::Core::load_vitals_cfg().

std::unique_ptr<PeriodicTask> Pol::Core::GameState::regen_resources_task

Definition at line 170 of file uvars.h.

Referenced by Pol::Core::start_tasks().

std::unique_ptr<PeriodicTask> Pol::Core::GameState::regen_stats_task

Definition at line 169 of file uvars.h.

Referenced by Pol::Core::start_tasks().

std::unique_ptr<PeriodicTask> Pol::Core::GameState::reload_accounts_task

Definition at line 171 of file uvars.h.

Referenced by Pol::Core::start_tasks().

std::unique_ptr<PeriodicTask> Pol::Core::GameState::reload_pol_cfg_task

Definition at line 174 of file uvars.h.

Referenced by Pol::Core::start_tasks().

unsigned int Pol::Core::GameState::shadowrealm_count

Definition at line 166 of file uvars.h.

Referenced by Pol::Core::add_realm(), and Pol::Core::load_realms().

std::map<int, Realms::Realm*> Pol::Core::GameState::shadowrealms_by_id
std::array<std::array<u32, 2>, 8> Pol::Core::GameState::spell_scroll_objtype_limits
std::vector<SpellCircle*> Pol::Core::GameState::spellcircles
TaskQueue Pol::Core::GameState::task_queue
threadhelp::TaskThreadPool Pol::Core::GameState::task_thread_pool

Definition at line 248 of file uvars.h.

Referenced by deinitialize(), GameState(), Pol::Core::write_data(), and Pol::xmain_inner().

std::unique_ptr<Items::ItemDesc> Pol::Core::GameState::temp_itemdesc

Definition at line 209 of file uvars.h.

Referenced by Pol::Items::Item::create(), GameState(), and Pol::Core::getObjtypeParam().

TextCmds Pol::Core::GameState::textcmds
std::vector<std::string> Pol::Core::GameState::tipfilenames
std::vector<UOSkill> Pol::Core::GameState::uo_skills
std::unique_ptr<PeriodicTask> Pol::Core::GameState::update_rpm_task

Definition at line 168 of file uvars.h.

Referenced by Pol::Core::start_tasks().

std::unique_ptr<PeriodicTask> Pol::Core::GameState::update_sysload_task

Definition at line 173 of file uvars.h.

Referenced by Pol::Core::start_tasks().

std::vector<Vital*> Pol::Core::GameState::vitals
VitalsByName Pol::Core::GameState::vitals_byname
std::unique_ptr<PeriodicTask> Pol::Core::GameState::write_account_task

Definition at line 172 of file uvars.h.

Referenced by Pol::Core::PolConfig::read_pol_config().

Plib::Package* Pol::Core::GameState::wwwroot_pkg

Definition at line 227 of file uvars.h.

Referenced by Pol::Core::config_web_server(), Pol::Core::decode_page(), and GameState().


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