Horizon Official Technical Documentation
unit_viewport_entry Struct Reference

#include <UnitDefinitions.hpp>

+ Inheritance diagram for unit_viewport_entry:
+ Collaboration diagram for unit_viewport_entry:

Public Member Functions

virtual unit_viewport_entry operator= (unit_viewport_entry const &right)
 

Public Attributes

int32_t character_id {0}
 
int16_t speed {150}
 
int16_t body_state {0}
 
int16_t health_state {0}
 
int32_t effect_state {0}
 
int16_t job_id {0}
 
int16_t hair_style_id {0}
 
int32_t weapon_id {0}
 
int32_t shield_id {0}
 
int16_t headgear_bottom_id {0}
 
int16_t headgear_top_id {0}
 
int16_t headgear_mid_id {0}
 
int16_t hair_color_id {0}
 
int16_t cloth_color_id {0}
 
directions head_direction {DIR_SOUTH}
 
int16_t robe_id {0}
 
int32_t guild_id {0}
 
int16_t guild_emblem_version {0}
 
int16_t honor {0}
 
int32_t virtue {0}
 
int8_t in_pk_mode {0}
 
int8_t gender {0}
 
int16_t current_x {0}
 
int16_t current_y {0}
 
int16_t current_dir {0}
 
int16_t to_x {0}
 
int16_t to_y {0}
 
int8_t x_size {0}
 
int8_t y_size {0}
 
unit_posture_type posture {POSTURE_STANDING}
 
int16_t base_level {0}
 
int16_t font {0}
 
int32_t max_hp {-1}
 
int32_t hp {-1}
 
int8_t is_boss {0}
 
int16_t body_style_id {0}
 
char name [MAX_UNIT_NAME_LENGTH] {0}
 
int32_t move_start_time
 
- Public Attributes inherited from viewport_entry
unit_type _unit_type {UNIT_PLAYER}
 
uint32_t _guid { 0 }
 

Member Function Documentation

◆ operator=()

virtual unit_viewport_entry unit_viewport_entry::operator= ( unit_viewport_entry const &  right)
inlinevirtual
854 {
855 _unit_type = right._unit_type;
856 _guid = right._guid;
857 character_id = right.character_id;
858 speed = right.speed;
859 body_state = right.body_state;
860 health_state = right.health_state;
861 effect_state = right.effect_state;
862 job_id = right.job_id;
863 hair_style_id = right.hair_style_id;
864 weapon_id = right.weapon_id;
865 headgear_bottom_id = right.headgear_bottom_id;
866 headgear_top_id = right.headgear_top_id;
867 headgear_mid_id = right.headgear_mid_id;
868 hair_color_id = right.hair_color_id;
869 cloth_color_id = right.cloth_color_id;
870 head_direction = right.head_direction;
871 robe_id = right.robe_id;
872 guild_id = right.guild_id;
873 guild_emblem_version = right.guild_emblem_version;
874 honor = right.honor;
875 virtue = right.virtue;
876 in_pk_mode = right.in_pk_mode;
877 gender = right.gender;
878 current_x = right.current_x;
879 current_y = right.current_y;
880 to_x = right.to_x;
881 to_y = right.to_y;
882 current_dir = right.current_dir;
883 x_size = right.x_size;
884 y_size = right.y_size;
885 posture = right.posture;
886 base_level = right.base_level;
887 font = right.font;
888 max_hp = right.max_hp;
889 hp = right.hp;
890 is_boss = right.is_boss;
891 body_style_id = right.body_style_id;
892 std::strncpy(name, right.name, MAX_UNIT_NAME_LENGTH);
893 move_start_time = right.move_start_time;
894 return *this;
895 }
#define MAX_UNIT_NAME_LENGTH
Definition: Client.hpp:34
directions head_direction
Definition: UnitDefinitions.hpp:915
int16_t robe_id
Definition: UnitDefinitions.hpp:916
int16_t base_level
Definition: UnitDefinitions.hpp:928
int32_t max_hp
Definition: UnitDefinitions.hpp:930
int8_t in_pk_mode
Definition: UnitDefinitions.hpp:921
int16_t guild_emblem_version
Definition: UnitDefinitions.hpp:918
int32_t hp
Definition: UnitDefinitions.hpp:931
int16_t job_id
Definition: UnitDefinitions.hpp:902
int32_t guild_id
Definition: UnitDefinitions.hpp:917
int16_t hair_color_id
Definition: UnitDefinitions.hpp:913
int32_t character_id
Definition: UnitDefinitions.hpp:897
int16_t honor
Definition: UnitDefinitions.hpp:919
int16_t font
Definition: UnitDefinitions.hpp:929
int8_t is_boss
Definition: UnitDefinitions.hpp:932
int32_t virtue
Definition: UnitDefinitions.hpp:920
int16_t headgear_top_id
Definition: UnitDefinitions.hpp:911
int16_t body_style_id
Definition: UnitDefinitions.hpp:933
int32_t move_start_time
Definition: UnitDefinitions.hpp:935
int16_t speed
Definition: UnitDefinitions.hpp:898
int16_t current_dir
Definition: UnitDefinitions.hpp:923
int32_t effect_state
Definition: UnitDefinitions.hpp:901
int32_t weapon_id
Definition: UnitDefinitions.hpp:904
int16_t to_y
Definition: UnitDefinitions.hpp:924
unit_posture_type posture
Definition: UnitDefinitions.hpp:927
int16_t headgear_mid_id
Definition: UnitDefinitions.hpp:912
int16_t to_x
Definition: UnitDefinitions.hpp:924
int16_t body_state
Definition: UnitDefinitions.hpp:899
char name[MAX_UNIT_NAME_LENGTH]
Definition: UnitDefinitions.hpp:934
int16_t headgear_bottom_id
Definition: UnitDefinitions.hpp:910
int16_t cloth_color_id
Definition: UnitDefinitions.hpp:914
int8_t x_size
Definition: UnitDefinitions.hpp:925
int16_t health_state
Definition: UnitDefinitions.hpp:900
int16_t hair_style_id
Definition: UnitDefinitions.hpp:903
int8_t y_size
Definition: UnitDefinitions.hpp:926
int16_t current_y
Definition: UnitDefinitions.hpp:923
int16_t current_x
Definition: UnitDefinitions.hpp:923
int8_t gender
Definition: UnitDefinitions.hpp:922
uint32_t _guid
Definition: UnitDefinitions.hpp:848
unit_type _unit_type
Definition: UnitDefinitions.hpp:847

References viewport_entry::_guid, viewport_entry::_unit_type, base_level, body_state, body_style_id, character_id, cloth_color_id, current_dir, current_x, current_y, effect_state, font, gender, guild_emblem_version, guild_id, hair_color_id, hair_style_id, head_direction, headgear_bottom_id, headgear_mid_id, headgear_top_id, health_state, honor, hp, in_pk_mode, is_boss, job_id, max_hp, MAX_UNIT_NAME_LENGTH, move_start_time, name, posture, robe_id, speed, to_x, to_y, virtue, weapon_id, x_size, and y_size.

Member Data Documentation

◆ base_level

◆ body_state

◆ body_style_id

◆ character_id

◆ cloth_color_id

◆ current_dir

◆ current_x

◆ current_y

◆ effect_state

◆ font

◆ gender

◆ guild_emblem_version

◆ guild_id

◆ hair_color_id

◆ hair_style_id

◆ head_direction

◆ headgear_bottom_id

◆ headgear_mid_id

◆ headgear_top_id

◆ health_state

◆ honor

◆ hp

◆ in_pk_mode

◆ is_boss

◆ job_id

◆ max_hp

◆ move_start_time

◆ name

◆ posture

◆ robe_id

◆ shield_id

◆ speed

◆ to_x

◆ to_y

◆ virtue

◆ weapon_id

◆ x_size

◆ y_size


The documentation for this struct was generated from the following file: