Horizon Official Technical Documentation
|
|
#include <Player.hpp>
Classes | |
struct | s_account_data |
struct | s_char_data |
Public Member Functions | |
Player (std::shared_ptr< ZoneSession > session, uint64_t uuid) | |
~Player () | |
std::shared_ptr< ZoneSession > | get_session () |
void | create (int char_id, std::string account_gender, int group_id) |
bool | initialize () |
bool | is_initialized () |
void | set_initialized (bool val) |
void | on_damage_received (std::shared_ptr< Unit > damage_dealer, int damage) override |
Unit functions. More... | |
virtual void | on_killed (std::shared_ptr< Unit > killer, bool with_drops=false, bool with_exp=false) override |
void | update_viewport () |
Grid applications. More... | |
void | realize_unit_movement (int32_t time, std::shared_ptr< Unit > unit) |
Movement. More... | |
void | realize_unit_movement_entry (int32_t time, std::shared_ptr< Unit > unit) |
void | realize_nearby_items (unit_viewport_notification_type notif_type) |
void | add_unit_to_viewport (std::shared_ptr< Unit > unit) |
void | remove_unit_from_viewport (std::shared_ptr< Unit > unit, unit_viewport_notification_type type) |
void | spawn_unit_in_viewport (std::shared_ptr< Unit > unit) |
bool | unit_is_in_viewport (std::shared_ptr< Unit > unit) |
void | notify_in_area (ByteBuffer &buf, grid_notifier_type type, uint16_t range=MAX_VIEW_RANGE) |
bool | move_to_map (std::shared_ptr< Map > map, MapCoords coords={ 0, 0 }) |
void | notify_map_properties () |
void | on_map_enter () |
void | stop_movement () override |
void | on_pathfinding_failure () override |
void | on_movement_begin (int32_t time) override |
void | on_movement_step () override |
void | on_movement_end () override |
bool | is_overweight_50 () |
bool | is_overweight_90 () |
bool | save () |
DB Synchronizations. More... | |
bool | load () |
uint64_t | new_unique_id () |
bool | is_logged_in () |
bool | set_logged_in (bool logged_in) |
s_char_data & | character () |
s_account_data & | account () |
bool | job_change (int32_t job_id) |
void | set_last_unique_id (uint64_t last_unique_id) |
Item Stores. More... | |
uint64_t | last_unique_id () |
uint32_t | get_max_inventory_size () |
void | set_max_inventory_size (uint32_t size) |
void | on_item_equip (std::shared_ptr< const item_entry_data > item) |
void | on_item_unequip (std::shared_ptr< const item_entry_data > item) |
std::shared_ptr< Assets::Inventory > | inventory () |
void | pickup_item (int32_t guid) |
void | throw_item (std::shared_ptr< item_entry_data > item, int32_t amount) |
std::shared_ptr< sol::state > | lua_state () |
NPC / Script applications. More... | |
void | send_npc_dialog (uint32_t npc_guid, std::string dialog) |
void | send_npc_next_dialog (uint32_t npc_guid) |
void | send_npc_close_dialog (uint32_t npc_guid) |
void | send_npc_menu_list (uint32_t npc_guid, std::string const &menu) |
int32_t | npc_contact_guid () |
void | set_npc_contact_guid (int32_t guid) |
std::vector< std::weak_ptr< Unit > > & | get_viewport_entities () |
std::map< uint16_t, std::shared_ptr< skill_learnt_info > > & | get_learnt_skills () |
std::shared_ptr< skill_learnt_info > | get_learnt_skill (uint16_t skill_id) |
void | add_learnt_skill (std::shared_ptr< skill_learnt_info > i) |
std::shared_ptr< const job_config_data > | job () |
void | set_job (std::shared_ptr< const job_config_data > j) |
bool | on_action_request (player_action_type action) |
Skills. More... | |
bool | perform_action (player_action_type action) |
bool | perform_skill (int16_t skill_id, int16_t skill_lv) |
bool | on_skill_failure (int16_t skill_id, int message_type, int item_id, skill_use_fail_cause_type cause) |
void | on_status_effect_start (std::shared_ptr< status_change_entry > sce) override |
Status Effects. More... | |
void | on_status_effect_end (std::shared_ptr< status_change_entry > sce) override |
void | on_status_effect_change (std::shared_ptr< status_change_entry > sce) override |
bool | attack (std::shared_ptr< Unit > e, bool continuous=false) override |
bool | stop_attack () |
void | respawn (int hp_rate, int sp_rate) |
std::shared_ptr< Assets::Storage > | get_storage (int32_t storage_id) |
int32_t | get_current_storage_id () |
void | set_current_storage_id (int32_t id) |
![]() | |
Unit (uint64_t uuid, unit_type type, unit_type_mask type_mask, std::shared_ptr< Map > map, MapCoords map_coords) | |
Unit (uint64_t uuid, unit_type type, unit_type_mask type_mask) | |
virtual | ~Unit () |
bool | initialize () |
virtual bool | finalize () |
bool | is_initialized () const |
bool | is_finalized () const |
void | set_finalized (bool finalized) |
MapCoords const & | dest_coords () const |
Movement. More... | |
virtual bool | walk_to_coordinates (int16_t x, int16_t y) |
virtual bool | walk_to_unit (std::shared_ptr< Unit > unit) |
bool | is_walking () const |
virtual void | stop_movement ()=0 |
bool | stop_walking (bool cancel=false, bool notify=false) |
uint64_t | uuid () const |
Unit Data. More... | |
unit_uuid | s_uuid () const |
void | set_uuid (uint64_t uuid) |
uint32_t | guid () |
uint16_t | job_id () const |
void | set_job_id (uint16_t job_id) |
unit_posture_type | posture () const |
void | set_posture (unit_posture_type posture) |
const std::string & | name () const |
void | set_name (const std::string &name) |
directions | direction () const |
void | set_direction (directions dir) |
std::shared_ptr< Horizon::Zone::Traits::Status > | status () |
void | set_status (std::shared_ptr< Horizon::Zone::Traits::Status > st) |
void | force_movement_stop_internal (bool stop=false) |
std::shared_ptr< Map > | map () |
Map & Map Container. More... | |
void | set_map (std::shared_ptr< Map > map) |
AStar::CoordinateList | get_walk_path () |
unit_type | type () const |
Unit applications. More... | |
unit_type_mask | type_mask () const |
bool | is_of_type (int type_mask) |
template<class T > | |
std::shared_ptr< T > | downcast () |
MapCoords const & | map_coords () const |
Grid applications. More... | |
void | set_map_coords (MapCoords const &coords) |
GridCoords const & | grid_coords () const |
void | set_grid_coords (GridCoords const &coords) |
bool | is_in_range_of (std::shared_ptr< Unit > unit, uint8_t range=MAX_VIEW_RANGE) |
void | notify_nearby_players_of_existence (unit_viewport_notification_type notif_type) |
void | notify_nearby_players_of_spawn () |
void | notify_nearby_players_of_movement (bool new_entry=false) |
void | notify_nearby_players_of_movement_stop (MapCoords stop_coords) |
void | notify_nearby_players_of_skill_use (grid_unit_skill_use_notification_type notification_type, s_unit_skill_use_notifier_config config) |
void | notify_nearby_players_of_basic_attack (s_grid_unit_basic_attack_config config) |
void | notify_nearby_players_of_item_drop (s_grid_notify_item_drop_entry entry) |
std::shared_ptr< Unit > | get_nearby_unit (uint32_t guid) |
uint64_t | get_scheduler_task_id (unit_task_schedule_group group) |
std::map< int16_t, std::shared_ptr< status_change_entry > > & | get_status_effects () |
void | apply_status_change_in_area (std::shared_ptr< Unit > target, s_grid_sc_apply_in_skill_area_config const &config, s_grid_apply_in_area_config const &aoe_config) |
void | remove_status_change_in_area (std::shared_ptr< Unit > target, int sc_type, s_grid_apply_in_area_config const &aoe_config) |
void | execute_skill_in_area (std::shared_ptr< Unit > target, std::shared_ptr< SkillExecution > skill_execution, s_grid_apply_in_area_config const &aoe_config) |
void | execute_skill_in_cell (std::shared_ptr< Unit > target, MapCoords cell, std::shared_ptr< SkillExecution > skill_execution, s_grid_apply_in_area_config const &aoe_config) |
void | use_skill_on_target (int16_t skill_lv, int16_t skill_id, int target_guid) |
void | use_skill_on_ground (int16_t skill_lv, int16_t skill_id, int16_t pos_x, int16_t pos_y) |
void | use_skill_on_ground (int16_t skill_lv, int16_t skill_id, int16_t pos_x, int16_t pos_y, std::string contents) |
bool | status_effect_start (int type, int total_time, int val1, int val2, int val3, int val4) |
Status Effects. More... | |
bool | status_effect_end (int type) |
virtual void | on_status_effect_start (std::shared_ptr< status_change_entry > sce)=0 |
virtual void | on_status_effect_end (std::shared_ptr< status_change_entry > sce)=0 |
virtual void | on_status_effect_change (std::shared_ptr< status_change_entry > sce)=0 |
std::shared_ptr< AStar::CoordinateList > | path_to (std::shared_ptr< Unit > e) |
int | distance_from (std::shared_ptr< Unit > e) |
virtual bool | attack (std::shared_ptr< Unit > target, bool continuous=false) |
virtual bool | stop_attacking () |
bool | target_is_attackable (std::shared_ptr< Unit > target) |
void | set_attacking (bool attacking) |
bool | is_attacking () |
void | on_attack_end () |
bool | is_dead () |
virtual void | on_damage_received (std::shared_ptr< Unit > damage_dealer, int damage) |
virtual void | on_killed (std::shared_ptr< Unit > killer, bool with_drops=false, bool with_exp=false) |
std::shared_ptr< Combat > | combat () |
Combat. More... | |
void | set_combat (std::shared_ptr< Combat > combat) |
void | update (uint64_t tick) |
Extremely time-sensitive functions. More... | |
std::shared_ptr< CombatRegistry > | combat_registry () |
bool | has_damage_walk_delay () |
Walk Delay. More... | |
void | set_damage_walk_delay (bool delay) |
void | set_lockon_after_walk_completed (uint64_t target_guid, bool continuous=false) |
Lockon after walk completed. More... | |
void | clear_lockon_after_walk_completed () |
uint64_t | lockon_after_walk_completed_target_guid () |
![]() | |
virtual | ~GridObject () |
bool | has_valid_grid_reference () const |
void | add_grid_reference (GridRefManager< Player > &m) |
void | remove_grid_reference () |
GridReference< Player > & | get_reference () |
Private Attributes | |
bool | _is_initialized { false } |
std::weak_ptr< ZoneSession > | _session |
std::shared_ptr< sol::state > | _lua_state |
std::shared_ptr< Assets::Inventory > | _inventory |
std::vector< std::shared_ptr< Assets::Storage > > | _storages |
int32_t | _current_storage_id { 0 } |
std::atomic< bool > | _is_logged_in {false} |
int32_t | _npc_contact_guid {0} |
std::vector< std::weak_ptr< Unit > > | _viewport_entities |
std::map< uint16_t, std::shared_ptr< skill_learnt_info > > | _learnt_skills |
s_char_data | _char |
s_account_data | _account |
std::shared_ptr< const job_config_data > | _job |
Additional Inherited Members | |
![]() | |
bool | schedule_walk () |
void | walk () |
virtual void | on_pathfinding_failure ()=0 |
virtual void | on_movement_begin (int32_t time)=0 |
virtual void | on_movement_step ()=0 |
virtual void | on_movement_end ()=0 |
Player::Player | ( | std::shared_ptr< ZoneSession > | session, |
uint64_t | uuid | ||
) |
Player::~Player | ( | ) |
References Horizon::Zone::GridObject< Player >::has_valid_grid_reference(), and Horizon::Zone::GridObject< Player >::remove_grid_reference().
|
inline |
|
inline |
References _learnt_skills.
Referenced by initialize().
void Player::add_unit_to_viewport | ( | std::shared_ptr< Unit > | unit | ) |
References _viewport_entities, get_session(), unit_is_in_viewport(), and UNIT_ITEM.
Reimplemented from Horizon::Zone::Unit.
References Horizon::Zone::Unit::attack().
|
inline |
References _char.
Referenced by create(), get_max_inventory_size(), last_unique_id(), load(), new_unique_id(), respawn(), save(), set_last_unique_id(), and set_max_inventory_size().
void Player::create | ( | int | char_id, |
std::string | account_gender, | ||
int | group_id | ||
) |
References Horizon::Zone::Units::Player::s_account_data::_account_gender, Horizon::Zone::Units::Player::s_char_data::_character_id, Horizon::Zone::Units::Player::s_account_data::_group_id, account(), character(), and load().
|
inline |
References _current_storage_id.
|
inline |
References _learnt_skills.
Referenced by Horizon::Zone::PlayerComponent::sync_data_types().
|
inline |
References _learnt_skills.
|
inline |
References Horizon::Zone::Units::Player::s_char_data::_max_inventory_size, and character().
Referenced by initialize().
|
inline |
References _session.
Referenced by add_unit_to_viewport(), load(), move_to_map(), notify_map_properties(), on_map_enter(), on_movement_begin(), on_skill_failure(), on_status_effect_end(), on_status_effect_start(), perform_action(), pickup_item(), realize_unit_movement(), realize_unit_movement_entry(), remove_unit_from_viewport(), respawn(), send_npc_close_dialog(), send_npc_dialog(), send_npc_menu_list(), send_npc_next_dialog(), spawn_unit_in_viewport(), and stop_movement().
std::shared_ptr< Horizon::Zone::Assets::Storage > Player::get_storage | ( | int32_t | storage_id | ) |
References _storages.
Referenced by Horizon::Zone::PlayerComponent::sync_data_types().
|
inline |
References _viewport_entities.
Referenced by on_map_enter().
bool Player::initialize | ( | ) |
References _inventory, _storages, add_learnt_skill(), ESZ_MEDIUM, get_max_inventory_size(), HLog, Horizon::Zone::Unit::initialize(), Horizon::Zone::Unit::job_id(), skill_learnt_info::learn_type, skill_learnt_info::level, lua_state(), Horizon::Zone::Unit::map(), Horizon::Zone::Unit::map_coords(), on_map_enter(), Horizon::System::RUNTIME_SCRIPTVM, set_initialized(), skill_learnt_info::skill_id, SKILL_LEARN_PERMANENT, SkillDB, Horizon::Zone::Unit::status(), StorageDB, and sZone.
|
inline |
References _inventory.
Referenced by Horizon::Zone::Traits::EquipATK::compute(), Horizon::Zone::Traits::EquipMATK::compute(), Horizon::Zone::Traits::HardDEF::compute(), on_map_enter(), pickup_item(), save(), Horizon::Zone::PlayerComponent::sync_data_types(), and throw_item().
|
inline |
References _is_initialized.
Referenced by on_map_enter().
|
inline |
References _is_logged_in.
bool Player::is_overweight_50 | ( | ) |
bool Player::is_overweight_90 | ( | ) |
|
inline |
References _job.
Referenced by job_change().
bool Player::job_change | ( | int32_t | job_id | ) |
References HLog, job(), Horizon::Zone::Unit::job_id(), JobDB, Horizon::Zone::Unit::set_job_id(), and Horizon::Zone::Unit::status().
Referenced by Horizon::Zone::PlayerComponent::sync_data_types().
|
inline |
References Horizon::Zone::Units::Player::s_char_data::_last_unique_id, and character().
Referenced by set_last_unique_id().
bool Player::load | ( | ) |
Set map and coordinates for unit.
References Horizon::Zone::Units::Player::s_account_data::_account_id, _character_id, Horizon::Zone::Units::Player::s_char_data::_character_id, Horizon::Zone::Units::Player::s_char_data::_font, Horizon::Zone::Units::Player::s_char_data::_gender, Horizon::Zone::Units::Player::s_char_data::_online, Horizon::Zone::Units::Player::s_char_data::_saved_map, Horizon::Zone::Units::Player::s_char_data::_saved_x, Horizon::Zone::Units::Player::s_char_data::_saved_y, Horizon::Zone::Units::Player::s_char_data::_slot, account(), character(), get_session(), HLog, Horizon::Zone::Unit::map(), POSTURE_STANDING, RESOURCE_PRIORITY_PRIMARY, Horizon::System::RUNTIME_GAMELOGIC, set_last_unique_id(), Horizon::Zone::Unit::set_map(), Horizon::Zone::Unit::set_map_coords(), Horizon::Zone::Unit::set_name(), Horizon::Zone::Unit::set_posture(), sZone, UNIT_GENDER_FEMALE, and UNIT_GENDER_MALE.
Referenced by create().
|
inline |
NPC / Script applications.
References _lua_state.
Referenced by initialize(), on_action_request(), and perform_skill().
References EVP_NOTIFY_TELEPORT, Horizon::Zone::Unit::force_movement_stop_internal(), get_session(), Horizon::Zone::Unit::is_walking(), Horizon::Zone::Unit::map(), Horizon::Zone::Unit::notify_nearby_players_of_existence(), on_map_enter(), RESOURCE_PRIORITY_PRIMARY, RESOURCE_PRIORITY_SECONDARY, RESOURCE_PRIORITY_TERTIARY, Horizon::Zone::Unit::set_map(), Horizon::Zone::Unit::set_map_coords(), Coordinates< MAX_COORDINATES >::x(), and Coordinates< MAX_COORDINATES >::y().
Referenced by respawn(), and Horizon::Zone::PlayerComponent::sync_data_types().
uint64_t Player::new_unique_id | ( | ) |
References Horizon::Zone::Units::Player::s_char_data::_character_id, Horizon::Zone::Units::Player::s_char_data::_last_unique_id, and character().
void Player::notify_in_area | ( | ByteBuffer & | buf, |
grid_notifier_type | type, | ||
uint16_t | range = MAX_VIEW_RANGE |
||
) |
References Horizon::Zone::Unit::map(), Horizon::Zone::Unit::map_coords(), and Horizon::Zone::Unit::type().
void Player::notify_map_properties | ( | ) |
References zc_map_properties::allow_carts, zc_map_properties::battleground, zc_map_properties::disallow_party, get_session(), zc_map_properties::gvg, zc_map_properties::no_costume, zc_map_properties::no_effects, zc_map_properties::party_pvp, zc_map_properties::pvp, zc_map_properties::pvp_kill_counter, zc_map_properties::siege, zc_map_properties::spare_bits, and zc_map_properties::stargladiator_miracles.
Referenced by on_map_enter().
|
inline |
References _npc_contact_guid.
bool Player::on_action_request | ( | player_action_type | action | ) |
Skills.
References HLog, lua_state(), and sZone.
|
overridevirtual |
Unit functions.
Reimplemented from Horizon::Zone::Unit.
References Horizon::Zone::Unit::on_damage_received(), on_killed(), and Horizon::Zone::Unit::status().
void Player::on_item_equip | ( | std::shared_ptr< const item_entry_data > | item | ) |
void Player::on_item_unequip | ( | std::shared_ptr< const item_entry_data > | item | ) |
|
overridevirtual |
Reimplemented from Horizon::Zone::Unit.
References EVP_NOTIFY_DEAD, Horizon::Zone::Unit::on_killed(), and remove_unit_from_viewport().
Referenced by on_damage_received().
void Player::on_map_enter | ( | ) |
References EVP_NOTIFY_DEAD, get_session(), get_viewport_entities(), inventory(), Horizon::Zone::Unit::is_dead(), is_initialized(), notify_map_properties(), Horizon::Zone::Unit::notify_nearby_players_of_spawn(), remove_unit_from_viewport(), Horizon::Zone::Unit::status(), and update_viewport().
Referenced by initialize(), and move_to_map().
|
overridevirtual |
Implements Horizon::Zone::Unit.
References Horizon::Zone::Unit::dest_coords(), get_session(), and Horizon::Zone::Unit::map_coords().
|
overridevirtual |
Implements Horizon::Zone::Unit.
|
overridevirtual |
Implements Horizon::Zone::Unit.
References Horizon::Zone::Unit::map(), Horizon::Zone::Unit::map_coords(), MAX_NPC_TRIGGER_RANGE, and update_viewport().
|
overridevirtual |
Implements Horizon::Zone::Unit.
bool Player::on_skill_failure | ( | int16_t | skill_id, |
int | message_type, | ||
int | item_id, | ||
skill_use_fail_cause_type | cause | ||
) |
References get_session().
Referenced by Horizon::Zone::PlayerComponent::sync_data_types().
|
overridevirtual |
Implements Horizon::Zone::Unit.
|
overridevirtual |
Implements Horizon::Zone::Unit.
References get_session(), and Horizon::Zone::Unit::guid().
|
overridevirtual |
Status Effects.
Implements Horizon::Zone::Unit.
References get_session(), and Horizon::Zone::Unit::guid().
bool Player::perform_action | ( | player_action_type | action | ) |
References get_session(), PLAYER_ACT_ATTACK, PLAYER_ACT_ATTACK_REPEAT, PLAYER_ACT_SIT, and PLAYER_ACT_STAND.
Referenced by Horizon::Zone::PlayerComponent::sync_data_types().
bool Player::perform_skill | ( | int16_t | skill_id, |
int16_t | skill_lv | ||
) |
References HLog, lua_state(), SkillDB, and sZone.
Referenced by Horizon::Zone::PlayerComponent::sync_data_types().
void Player::pickup_item | ( | int32_t | guid | ) |
References Horizon::Zone::Units::Item::finalize(), Horizon::Zone::Unit::get_nearby_unit(), get_session(), Horizon::Zone::Unit::guid(), inventory(), Horizon::Zone::Assets::INVENTORY_ADD_SUCCESS, PLAYER_ACT_ITEM_PICKUP, RESOURCE_PRIORITY_TERTIARY, and UNIT_ITEM.
void Horizon::Zone::Units::Player::realize_nearby_items | ( | unit_viewport_notification_type | notif_type | ) |
void Player::realize_unit_movement | ( | int32_t | time, |
std::shared_ptr< Unit > | unit | ||
) |
Movement.
References get_session().
void Player::realize_unit_movement_entry | ( | int32_t | time, |
std::shared_ptr< Unit > | unit | ||
) |
References get_session(), and unit_viewport_entry::move_start_time.
void Player::remove_unit_from_viewport | ( | std::shared_ptr< Unit > | unit, |
unit_viewport_notification_type | type | ||
) |
References _viewport_entities, EVP_NOTIFY_DEAD, get_session(), Horizon::Zone::Unit::is_dead(), Horizon::Zone::Unit::type(), unit_is_in_viewport(), and UNIT_ITEM.
Referenced by on_killed(), and on_map_enter().
void Player::respawn | ( | int | hp_rate, |
int | sp_rate | ||
) |
References Horizon::Zone::Units::Player::s_char_data::_saved_map, character(), get_session(), Horizon::Zone::Unit::guid(), Horizon::Zone::Unit::is_dead(), Horizon::Zone::Unit::map(), move_to_map(), RESOURCE_PRIORITY_PRIMARY, Horizon::System::RUNTIME_GAMELOGIC, Horizon::Zone::Unit::status(), and sZone.
bool Player::save | ( | ) |
DB Synchronizations.
References _character_id, _storages, account(), character(), HLog, inventory(), Horizon::Zone::Unit::map(), Horizon::Zone::Unit::map_coords(), Horizon::Zone::Unit::name(), Horizon::Zone::Unit::status(), sZone, and UNIT_GENDER_MALE.
void Player::send_npc_close_dialog | ( | uint32_t | npc_guid | ) |
References get_session().
Referenced by Horizon::Zone::PlayerComponent::sync_data_types().
void Player::send_npc_dialog | ( | uint32_t | npc_guid, |
std::string | dialog | ||
) |
References get_session().
Referenced by Horizon::Zone::PlayerComponent::sync_data_types().
void Player::send_npc_menu_list | ( | uint32_t | npc_guid, |
std::string const & | menu | ||
) |
References get_session().
Referenced by Horizon::Zone::PlayerComponent::sync_data_types().
void Player::send_npc_next_dialog | ( | uint32_t | npc_guid | ) |
References get_session().
Referenced by Horizon::Zone::PlayerComponent::sync_data_types().
|
inline |
References _current_storage_id.
|
inline |
References _is_initialized.
Referenced by initialize().
|
inline |
|
inline |
Item Stores.
References Horizon::Zone::Units::Player::s_char_data::_last_unique_id, character(), and last_unique_id().
Referenced by load().
|
inline |
References _is_logged_in.
|
inline |
References Horizon::Zone::Units::Player::s_char_data::_max_inventory_size, and character().
|
inline |
References _npc_contact_guid, and Horizon::Zone::Unit::guid().
void Player::spawn_unit_in_viewport | ( | std::shared_ptr< Unit > | unit | ) |
References get_session().
bool Player::stop_attack | ( | ) |
References Horizon::Zone::Unit::get_scheduler_task_id(), Horizon::Zone::Unit::map(), and UNIT_SCHEDULE_ATTACK.
|
overridevirtual |
Implements Horizon::Zone::Unit.
References get_session(), Horizon::Zone::Unit::guid(), Horizon::Zone::Unit::map_coords(), Coordinates< MAX_COORDINATES >::x(), and Coordinates< MAX_COORDINATES >::y().
void Player::throw_item | ( | std::shared_ptr< item_entry_data > | item, |
int32_t | amount | ||
) |
References inventory(), Horizon::Zone::Unit::map(), and Horizon::Zone::Unit::map_coords().
bool Player::unit_is_in_viewport | ( | std::shared_ptr< Unit > | unit | ) |
References _viewport_entities.
Referenced by add_unit_to_viewport(), and remove_unit_from_viewport().
void Player::update_viewport | ( | ) |
Grid applications.
References Horizon::Zone::Unit::map(), and Horizon::Zone::Unit::map_coords().
Referenced by on_map_enter(), and on_movement_step().
|
private |
Referenced by account().
|
private |
Referenced by character().
|
private |
Referenced by get_current_storage_id(), and set_current_storage_id().
|
private |
Referenced by initialize(), and inventory().
|
private |
Referenced by is_initialized(), and set_initialized().
|
private |
Referenced by is_logged_in(), and set_logged_in().
|
private |
|
private |
Referenced by add_learnt_skill(), get_learnt_skill(), and get_learnt_skills().
|
private |
Referenced by lua_state().
|
private |
Referenced by npc_contact_guid(), and set_npc_contact_guid().
|
private |
Referenced by get_session().
|
private |
Referenced by get_storage(), initialize(), and save().
|
private |
Referenced by add_unit_to_viewport(), get_viewport_entities(), remove_unit_from_viewport(), and unit_is_in_viewport().