SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
Entity Class Reference

#include <Entity.h>

Collaboration diagram for Entity:
Collaboration graph

Classes

struct  currentInputState
 

Public Member Functions

void dump ()
 
void addPosUpdate (const PosUpdate &p)
 
void addInterp (const PosUpdate &p)
 
bool update_rot (int axis) const
 
void InsertUpdate (PosUpdate pup)
 
const QString & name () const
 
void fillFromCharacter ()
 
void beginLogout (uint16_t time_till_logout=10)
 

Static Public Member Functions

static void sendAllyID (BitStream &bs)
 
static void sendPvP (BitStream &bs)
 

Public Attributes

InputStateStorage inp_state
 
CharacterPtr m_char
 
PlayerPtr m_player
 
NPCPtr m_npc
 
bool m_has_supergroup = true
 
SuperGroup m_supergroup
 
bool m_has_team = false
 
Teamm_team = nullptr
 
EntityData m_entity_data
 
uint32_t m_idx = {0}
 
uint32_t m_db_id = {0}
 
EntType m_type = {EntType::Invalid}
 
glm::quat m_direction
 
glm::vec3 m_spd = {1,1,1}
 
uint32_t m_target_idx = 0
 
uint32_t m_assist_target_idx = 0
 
int m_randSeed = 0
 
int m_num_fx = 0
 
bool m_is_logging_out = false
 
int m_time_till_logout = 0
 
std::vector< uint8_t > m_fx1
 
std::vector< uint32_t > m_fx2
 
std::vector< uint8_t > m_fx3
 
AppearanceType m_costume_type = AppearanceType::None
 
int m_state_mode = 0
 
bool m_state_mode_send = false
 
bool m_odd_send = false
 
bool m_seq_update = false
 
bool m_is_hero = false
 
bool m_is_villian = false
 
bool m_contact = false
 
int m_seq_upd_num1 = 0
 
int m_seq_upd_num2 = 0
 
bool m_is_flying = false
 
bool m_is_stunned = false
 
bool m_is_jumping = false
 
bool m_is_sliding = false
 
bool m_is_falling = false
 
bool m_has_jumppack = false
 
bool m_controls_disabled = false
 
float m_backup_spd = 1.0f
 
float m_jump_height = 2.0f
 
uint8_t m_update_id = 1
 
bool m_update_part_1 = true
 
bool m_force_pos_and_cam = true
 
bool m_full_update = true
 
bool m_has_control_id = true
 
int u3 = 0
 
PosUpdate m_pos_updates [64]
 
size_t m_update_idx = 0
 
std::vector< PosUpdateinterpResults
 
bool entReceiveAlwaysCon = false
 
bool entReceiveSeeThroughWalls = false
 
int pkt_id_QrotUpdateVal [3] = {0}
 
glm::vec3 vel
 
uint32_t prev_pos [3] = {0}
 
Vector3_FPV fixedpoint_pos
 
bool m_pchar_things = false
 
bool might_have_rare = false
 
bool m_hasname = false
 
bool m_classname_override = false
 
bool m_hasRagdoll = false
 
bool m_has_owner = false
 
bool m_create_player = false
 
bool m_rare_bits = false
 
int current_client_packet_id = {0}
 
QString m_override_name
 
uint32_t m_input_ack = {0}
 
bool player_type = false
 
bool m_destroyed = false
 
uint32_t ownerEntityId = 0
 
uint32_t creatorEntityId = 0
 
float translucency = 1.f
 
bool m_is_fading = true
 
MapClientSessionm_client = nullptr
 
FadeDirection m_fading_direction = FadeDirection::In
 
uint32_t m_db_store_flags = 0
 

Friends

class EntityStore
 

Member Function Documentation

bool Entity::update_rot ( int  axis) const

Friends And Related Function Documentation

friend class EntityStore
friend

Member Data Documentation

uint32_t Entity::creatorEntityId = 0
int Entity::current_client_packet_id = {0}
bool Entity::entReceiveAlwaysCon = false
bool Entity::entReceiveSeeThroughWalls = false
Vector3_FPV Entity::fixedpoint_pos
InputStateStorage Entity::inp_state
std::vector<PosUpdate> Entity::interpResults
uint32_t Entity::m_assist_target_idx = 0
float Entity::m_backup_spd = 1.0f
CharacterPtr Entity::m_char
bool Entity::m_classname_override = false
MapClientSession* Entity::m_client = nullptr
bool Entity::m_contact = false
bool Entity::m_controls_disabled = false
AppearanceType Entity::m_costume_type = AppearanceType::None
bool Entity::m_create_player = false
uint32_t Entity::m_db_id = {0}
uint32_t Entity::m_db_store_flags = 0
bool Entity::m_destroyed = false
glm::quat Entity::m_direction
EntityData Entity::m_entity_data
FadeDirection Entity::m_fading_direction = FadeDirection::In
bool Entity::m_force_pos_and_cam = true
bool Entity::m_full_update = true
std::vector<uint8_t> Entity::m_fx1
std::vector<uint32_t> Entity::m_fx2
std::vector<uint8_t> Entity::m_fx3
bool Entity::m_has_control_id = true
bool Entity::m_has_jumppack = false
bool Entity::m_has_owner = false
bool Entity::m_has_supergroup = true
bool Entity::m_has_team = false
bool Entity::m_hasname = false
bool Entity::m_hasRagdoll = false
uint32_t Entity::m_idx = {0}
uint32_t Entity::m_input_ack = {0}
bool Entity::m_is_fading = true
bool Entity::m_is_falling = false
bool Entity::m_is_flying = false
bool Entity::m_is_hero = false
bool Entity::m_is_jumping = false
bool Entity::m_is_logging_out = false
bool Entity::m_is_sliding = false
bool Entity::m_is_stunned = false
bool Entity::m_is_villian = false
float Entity::m_jump_height = 2.0f
NPCPtr Entity::m_npc
int Entity::m_num_fx = 0
bool Entity::m_odd_send = false
QString Entity::m_override_name
bool Entity::m_pchar_things = false
PlayerPtr Entity::m_player
PosUpdate Entity::m_pos_updates[64]
int Entity::m_randSeed = 0
bool Entity::m_rare_bits = false
int Entity::m_seq_upd_num1 = 0
int Entity::m_seq_upd_num2 = 0
bool Entity::m_seq_update = false
glm::vec3 Entity::m_spd = {1,1,1}
int Entity::m_state_mode = 0
bool Entity::m_state_mode_send = false
SuperGroup Entity::m_supergroup
uint32_t Entity::m_target_idx = 0
Team* Entity::m_team = nullptr
int Entity::m_time_till_logout = 0
EntType Entity::m_type = {EntType::Invalid}
uint8_t Entity::m_update_id = 1
size_t Entity::m_update_idx = 0
bool Entity::m_update_part_1 = true
bool Entity::might_have_rare = false
uint32_t Entity::ownerEntityId = 0
int Entity::pkt_id_QrotUpdateVal[3] = {0}
bool Entity::player_type = false
uint32_t Entity::prev_pos[3] = {0}
float Entity::translucency = 1.f
int Entity::u3 = 0
glm::vec3 Entity::vel

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