Pol
Revision:cb584c9
|
Classes | |
struct | Anchor |
struct | Area |
class | ARUpdater |
class | Attribute |
class | AttributeValue |
class | BoundingBox |
struct | Buff |
class | Character |
class | NPC |
struct | Point |
class | PrivUpdater |
struct | reportable_t |
class | VitalValue |
Variables | |
const unsigned | ATTRIBUTE_MAX_BASE = 60000 |
const unsigned | ATTRIBUTE_MAX_EFFECTIVE = 6000 |
const short | ATTRIBUTE_MAX_INTRINSIC_MOD = +30000 |
const short | ATTRIBUTE_MAX_TEMP_MOD = +30000 |
const unsigned | ATTRIBUTE_MIN_BASE = 0 |
const unsigned | ATTRIBUTE_MIN_EFFECTIVE = 0 |
const short | ATTRIBUTE_MIN_INTRINSIC_MOD = -30000 |
const short | ATTRIBUTE_MIN_TEMP_MOD = -30000 |
|
strong |
Enumerator | |
---|---|
READY_TO_SWING | |
MURDERER | |
PARTY_CAN_LOOT | |
TRADE_ACCEPTED | |
DEAD | |
HIDDEN | |
FROZEN | |
PARALYZED | |
WARMODE | |
POISONED | |
LOGGED_IN | |
CONNECTED | |
USE_ADJUSTMENTS |
Definition at line 310 of file charactr.h.
|
strong |
Definition at line 283 of file charactr.h.
unsigned short Pol::Mobile::calc_thru_damage | ( | double | damage, |
unsigned short | ar | ||
) |
Definition at line 1847 of file charactr.cpp.
References Pol::Mobile::Character::ar(), and Pol::Clib::random_int().
Referenced by Pol::Mobile::Character::armor_absorb_damage(), Pol::Mobile::NPC::get_hitscript_params(), and Pol::Mobile::Character::get_hitscript_params().
void Pol::Mobile::clean_attributes | ( | ) |
Definition at line 118 of file attribute.cpp.
References Pol::Core::GameState::attributes, Pol::Core::GameState::attributes_byname, and Pol::Core::gamestate.
Referenced by Pol::Core::GameState::cleanup_vars().
Items::Item* Pol::Mobile::create_backpack | ( | ) |
Definition at line 2009 of file charactr.cpp.
References Pol::Items::Item::create(), Pol::Items::Item::layer, Pol::Core::LAYER_BACKPACK, and UOBJ_BACKPACK.
Items::Item* Pol::Mobile::create_death_robe | ( | ) |
Definition at line 2003 of file charactr.cpp.
References Pol::Items::Item::create(), Pol::Items::Item::layer, Pol::Core::LAYER_ROBE_DRESS, and UOBJ_DEATH_ROBE.
Referenced by Pol::Mobile::Character::resurrect().
Items::Item* Pol::Mobile::create_death_shroud | ( | ) |
Definition at line 1997 of file charactr.cpp.
References Pol::Items::Item::create(), Pol::Items::Item::layer, Pol::Core::LAYER_ROBE_DRESS, and UOBJ_DEATH_SHROUD.
Referenced by Pol::Mobile::Character::on_death().
bool Pol::Mobile::DecodeFacing | ( | const char * | dir, |
Core::UFACING & | facing | ||
) |
Definition at line 167 of file ufacing.cpp.
References Pol::Core::FACING_E, Pol::Core::FACING_N, Pol::Core::FACING_NE, Pol::Core::FACING_NW, Pol::Core::FACING_S, Pol::Core::FACING_SE, Pol::Core::FACING_SW, and Pol::Core::FACING_W.
Referenced by Pol::Module::NPCExecutorModule::CanMove(), Pol::Module::NPCExecutorModule::face(), Pol::Module::NPCExecutorModule::IsLegalMove(), Pol::Module::NPCExecutorModule::move(), and Pol::Mobile::Character::script_method_id().
Core::UFACING Pol::Mobile::direction_away | ( | const Character * | src, |
const Core::UObject * | idst | ||
) |
Definition at line 153 of file ufacing.cpp.
References Pol::Core::away_cvt, and direction_toward().
Referenced by Pol::Module::NPCExecutorModule::mf_RunAwayFrom(), Pol::Module::NPCExecutorModule::mf_RunAwayFromLocation(), Pol::Module::NPCExecutorModule::mf_TurnAwayFrom(), Pol::Module::NPCExecutorModule::mf_TurnAwayFromLocation(), Pol::Module::NPCExecutorModule::mf_WalkAwayFrom(), and Pol::Module::NPCExecutorModule::mf_WalkAwayFromLocation().
Core::UFACING Pol::Mobile::direction_away | ( | const Character * | src, |
Core::xcoord | from_x, | ||
Core::ycoord | from_y | ||
) |
Definition at line 160 of file ufacing.cpp.
References Pol::Core::away_cvt, and direction_toward().
Core::UFACING Pol::Mobile::direction_toward | ( | const Character * | src, |
const Core::UObject * | idst | ||
) |
Definition at line 58 of file ufacing.cpp.
References Pol::Core::FACING_E, Pol::Core::FACING_N, Pol::Core::FACING_NE, Pol::Core::FACING_NW, Pol::Core::FACING_S, Pol::Core::FACING_SE, Pol::Core::FACING_SW, Pol::Core::FACING_W, Pol::Core::UObject::toplevel_owner(), Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Module::UOExecutorModule::mf_CanWalk(), Pol::Module::NPCExecutorModule::mf_RunToward(), Pol::Module::NPCExecutorModule::mf_RunTowardLocation(), Pol::Module::NPCExecutorModule::mf_TurnToward(), Pol::Module::NPCExecutorModule::mf_TurnTowardLocation(), Pol::Module::NPCExecutorModule::mf_WalkToward(), and Pol::Module::NPCExecutorModule::mf_WalkTowardLocation().
Core::UFACING Pol::Mobile::direction_toward | ( | const Character * | src, |
Core::xcoord | to_x, | ||
Core::ycoord | to_y | ||
) |
Definition at line 90 of file ufacing.cpp.
References Pol::Core::FACING_E, Pol::Core::FACING_N, Pol::Core::FACING_NE, Pol::Core::FACING_NW, Pol::Core::FACING_S, Pol::Core::FACING_SE, Pol::Core::FACING_SW, Pol::Core::FACING_W, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Core::UFACING Pol::Mobile::direction_toward | ( | Core::xcoord | from_x, |
Core::ycoord | from_y, | ||
Core::xcoord | to_x, | ||
Core::ycoord | to_y | ||
) |
Definition at line 121 of file ufacing.cpp.
References Pol::Core::FACING_E, Pol::Core::FACING_N, Pol::Core::FACING_NE, Pol::Core::FACING_NW, Pol::Core::FACING_S, Pol::Core::FACING_SE, Pol::Core::FACING_SW, and Pol::Core::FACING_W.
Referenced by direction_away().
const char * Pol::Mobile::FacingStr | ( | Core::UFACING | facing | ) |
Definition at line 34 of file ufacing.cpp.
References Pol::Core::FACING_E, Pol::Core::FACING_N, Pol::Core::FACING_NE, Pol::Core::FACING_NW, Pol::Core::FACING_S, Pol::Core::FACING_SE, Pol::Core::FACING_SW, and Pol::Core::FACING_W.
Referenced by Pol::Module::NPCExecutorModule::facing(), and Pol::Module::NPCExecutorModule::move().
Core::UFACING Pol::Mobile::GetRandomFacing | ( | ) |
Definition at line 28 of file ufacing.cpp.
References Pol::Clib::random_int().
Referenced by Pol::Module::NPCExecutorModule::move().
void Pol::Mobile::handle_attack | ( | Network::Client * | client, |
Core::PKTIN_05 * | msg | ||
) |
Definition at line 28 of file attack.cpp.
References Pol::Mobile::Character::acct, cfBEu32, Pol::Network::Client::chr, Pol::Mobile::Character::client, Pol::Mobile::Character::dead(), Pol::Core::find_character(), Pol::Mobile::Character::is_visible_to_me(), Pol::Core::pol_distance(), Pol::Core::private_say_above(), Pol::Core::JusticeRegion::RunNoCombatCheck(), Pol::Mobile::Character::select_opponent(), Pol::Mobile::Character::send_highlight(), Pol::Core::send_sysmessage(), Pol::Core::ULWObject::serial, Pol::Core::PKTIN_05::serial, Pol::Core::settingsManager, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
unsigned short Pol::Mobile::layer_to_zone | ( | unsigned short | layer | ) |
Definition at line 182 of file charactr.cpp.
References Pol::Core::GameState::armorzones, ERROR_PRINT, and Pol::Core::gamestate.
Referenced by Pol::Items::ArmorDesc::ArmorDesc().
void Pol::Mobile::load_armor_zones | ( | ) |
Definition at line 214 of file charactr.cpp.
References Pol::Core::GameState::armor_zone_chance_sum, Pol::Core::GameState::armorzones, Pol::Core::ArmorZone::chance, ERROR_PRINT, Pol::Clib::FileExists(), Pol::Core::gamestate, Pol::Core::HIGHEST_LAYER, INFO_PRINT, Pol::Core::ArmorZone::layers, Pol::Core::LOWEST_LAYER, Pol::Core::ArmorZone::name, Pol::Clib::ConfigFile::read(), Pol::Clib::ConfigElem::remove_prop(), Pol::Clib::ConfigElem::remove_string(), Pol::Clib::ConfigElem::remove_ushort(), and Pol::Plib::systemstate.
Referenced by Pol::Core::load_data().
void Pol::Mobile::load_attribute_entry | ( | const Plib::Package * | pkg, |
Clib::ConfigElem & | elem | ||
) |
Definition at line 80 of file attribute.cpp.
References Pol::Mobile::Attribute::Attribute(), Pol::Core::GameState::attributes, Pol::Core::GameState::attributes_byname, Pol::Plib::Package::desc(), Pol::Mobile::Attribute::FindAttribute(), Pol::Core::gamestate, Pol::Mobile::Attribute::pkg, and Pol::Clib::ConfigElem::throw_error().
Referenced by load_attributes_cfg().
void Pol::Mobile::load_attributes_cfg | ( | ) |
Definition at line 99 of file attribute.cpp.
References Pol::Core::GameState::attributes, Pol::Mobile::Attribute::FindAttribute(), Pol::Core::gamestate, load_attribute_entry(), Pol::Plib::load_packaged_cfgs(), Pol::Core::GameState::numAttributes, passert_always, Pol::Core::GameState::pAttrDexterity, Pol::Core::GameState::pAttrIntelligence, Pol::Core::GameState::pAttrParry, Pol::Core::GameState::pAttrStrength, and Pol::Core::GameState::pAttrTactics.
Referenced by Pol::Core::load_data().
Definition at line 1082 of file charactr.h.
References Pol::Mobile::Character::inform_criminal().
Referenced by Pol::Mobile::Character::restart_criminal_timer().
Definition at line 1096 of file charactr.h.
References Pol::Mobile::Character::inform_enteredarea().
Definition at line 1088 of file charactr.h.
References Pol::Mobile::Character::inform_leftarea().
Definition at line 1073 of file charactr.h.
References Pol::Mobile::Character::inform_imoved(), and Pol::Mobile::Character::inform_moved().
|
inline |
Definition at line 278 of file charactr.h.
References Pol::Mobile::reportable_t::polclock, and Pol::Mobile::reportable_t::serial.
void Pol::Mobile::PropagateMove | ( | Character * | chr | ) |
Definition at line 2683 of file charactr.cpp.
References Pol::Core::build_owncreate(), Pol::Mobile::Character::client, Pol::Network::Client::ClientType, Pol::Network::CLIENTTYPE_7090, Pol::Core::WorldIterator< Filter >::InRange(), Pol::Core::inrange(), Pol::Core::WorldIterator< Filter >::InVisualRange(), Pol::Mobile::Character::invul(), Pol::Mobile::Character::is_visible_to_me(), Pol::Mobile::Character::lastx, Pol::Mobile::Character::lasty, Pol::Mobile::Character::move_reason, Pol::Mobile::Character::MULTIMOVE, Pol::Mobile::Character::poisoned(), RANGE_VISUAL, Pol::Core::ULWObject::realm, Pol::Network::MoveChrPkt::Send(), Pol::Core::send_owncreate(), Pol::Core::send_remove_character(), Pol::Core::UObject::serial_ext, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Mobile::Character::tellmove().
void Pol::Mobile::send_create_ghost | ( | Character * | chr, |
Network::Client * | client | ||
) |
Definition at line 2037 of file charactr.cpp.
References Pol::Network::Client::chr, Pol::Mobile::Character::dead(), Pol::Core::inrange(), Pol::Mobile::Character::is_visible_to_me(), and Pol::Core::send_owncreate().
void Pol::Mobile::send_remove_if_hidden_ghost | ( | Character * | chr, |
Network::Client * | client | ||
) |
Definition at line 2027 of file charactr.cpp.
References Pol::Network::Client::chr, Pol::Core::inrange(), Pol::Mobile::Character::is_visible_to_me(), and Pol::Core::send_remove_character().
void Pol::Mobile::unload_armor_zones | ( | ) |
Definition at line 252 of file charactr.cpp.
References Pol::Core::GameState::armor_zone_chance_sum, Pol::Core::GameState::armorzones, and Pol::Core::gamestate.
Referenced by Pol::Core::unload_data().
unsigned short Pol::Mobile::zone_name_to_zone | ( | const char * | zname | ) |
Definition at line 201 of file charactr.cpp.
References Pol::Core::GameState::armorzones, ERROR_PRINT, Pol::Core::gamestate, and name.
Referenced by Pol::Items::ArmorDesc::ArmorDesc().
const char * Pol::Mobile::zone_to_zone_name | ( | unsigned short | zone | ) |
Definition at line 196 of file charactr.cpp.
References Pol::Core::GameState::armorzones, and Pol::Core::gamestate.
Referenced by Pol::Items::ArmorDesc::PopulateStruct().
const unsigned Pol::Mobile::ATTRIBUTE_MAX_BASE = 60000 |
Definition at line 70 of file attribute.h.
Referenced by Pol::Mobile::AttributeValue::base(), Pol::Module::AttributeExecutorModule::mf_SetAttributeBaseValue(), Pol::Module::AttributeExecutorModule::mf_SetAttributeCap(), Pol::Mobile::Character::readAttributesAndVitals(), and Pol::Mobile::NPC::readNewNpcAttributes().
const unsigned Pol::Mobile::ATTRIBUTE_MAX_EFFECTIVE = 6000 |
Definition at line 67 of file attribute.h.
const short Pol::Mobile::ATTRIBUTE_MAX_INTRINSIC_MOD = +30000 |
Definition at line 76 of file attribute.h.
Referenced by Pol::Mobile::Character::calc_single_attribute().
const short Pol::Mobile::ATTRIBUTE_MAX_TEMP_MOD = +30000 |
Definition at line 73 of file attribute.h.
Referenced by Pol::Module::AttributeExecutorModule::mf_AlterAttributeTemporaryMod(), and Pol::Module::AttributeExecutorModule::mf_SetAttributeTemporaryMod().
const unsigned Pol::Mobile::ATTRIBUTE_MIN_BASE = 0 |
Definition at line 69 of file attribute.h.
Referenced by Pol::Module::AttributeExecutorModule::mf_SetAttributeBaseValue(), and Pol::Module::AttributeExecutorModule::mf_SetAttributeCap().
const unsigned Pol::Mobile::ATTRIBUTE_MIN_EFFECTIVE = 0 |
Definition at line 66 of file attribute.h.
const short Pol::Mobile::ATTRIBUTE_MIN_INTRINSIC_MOD = -30000 |
Definition at line 75 of file attribute.h.
Referenced by Pol::Mobile::Character::calc_single_attribute().
const short Pol::Mobile::ATTRIBUTE_MIN_TEMP_MOD = -30000 |
Definition at line 72 of file attribute.h.
Referenced by Pol::Module::AttributeExecutorModule::mf_SetAttributeTemporaryMod().