Pol  Revision:cb584c9
Pol::Network::ClientGameData Class Reference

#include <cgdata.h>

Public Types

typedef std::map< u32, Module::UOExecutorModule * > GumpMods
 

Public Member Functions

 ClientGameData ()
 
 ~ClientGameData ()
 
void add_gumpmod (Module::UOExecutorModule *, u32 gumpid)
 Registers a gumpid for the given module. More...
 
void clear ()
 
size_t estimatedSize () const
 
Module::UOExecutorModulefind_gumpmod (u32 gumpid)
 Given a gumpid, finds the module that registered it, returns nullptr if not found. More...
 
void remove_gumpmods (Module::UOExecutorModule *)
 Removes all the registered gumpids for a given module. More...
 

Public Attributes

u32 custom_house_serial
 
GumpMods gumpmods
 
Core::JusticeRegionjustice_region
 
int lightlevel
 
Module::UOExecutorModulemenu_selection_uoemod
 
Core::MusicRegionmusic_region
 
Module::UOExecutorModulepopup_menu_selection_uoemod
 
Module::UnicodeExecutorModuleprompt_uniemod
 
Module::UOExecutorModuleprompt_uoemod
 
Module::UOExecutorModuleresurrect_uoemod
 
Module::UOExecutorModuleselcolor_uoemod
 
Module::UOExecutorModuletarget_cursor_uoemod
 
Module::UOExecutorModuletextentry_uoemod
 
Core::NpcRef vendor
 
ref_ptr< Core::UContainervendor_bought
 
ref_ptr< Core::UContainervendor_for_sale
 
Core::WeatherRegionweather_region
 

Detailed Description

Definition at line 33 of file cgdata.h.

Member Typedef Documentation

Definition at line 46 of file cgdata.h.

Constructor & Destructor Documentation

Pol::Network::ClientGameData::ClientGameData ( )

Definition at line 27 of file cgdata.cpp.

Referenced by estimatedSize().

Pol::Network::ClientGameData::~ClientGameData ( )

Definition at line 47 of file cgdata.cpp.

References clear().

Member Function Documentation

void Pol::Network::ClientGameData::add_gumpmod ( Module::UOExecutorModule uoemod,
u32  gumpid 
)

Registers a gumpid for the given module.

Definition at line 143 of file cgdata.cpp.

References gumpmods.

Referenced by Pol::Module::UOExecutorModule::internal_SendCompressedGumpMenu(), and Pol::Module::UOExecutorModule::internal_SendUnCompressedGumpMenu().

size_t Pol::Network::ClientGameData::estimatedSize ( ) const

Definition at line 167 of file cgdata.cpp.

References ClientGameData(), and gumpmods.

Referenced by Pol::Network::Client::estimatedSize().

Module::UOExecutorModule * Pol::Network::ClientGameData::find_gumpmod ( u32  gumpid)

Given a gumpid, finds the module that registered it, returns nullptr if not found.

Definition at line 149 of file cgdata.cpp.

References gumpmods.

Referenced by Pol::Module::gumpbutton_handler(), and Pol::Module::UOExecutorModule::mf_CloseGump().

void Pol::Network::ClientGameData::remove_gumpmods ( Module::UOExecutorModule uoemod)

Removes all the registered gumpids for a given module.

Definition at line 158 of file cgdata.cpp.

References gumpmods.

Referenced by Pol::Module::clear_gumphandler(), and Pol::Module::UOExecutorModule::~UOExecutorModule().

Member Data Documentation

GumpMods Pol::Network::ClientGameData::gumpmods
int Pol::Network::ClientGameData::lightlevel
Core::MusicRegion* Pol::Network::ClientGameData::music_region
ref_ptr<Core::UContainer> Pol::Network::ClientGameData::vendor_for_sale

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