VOX
A little voxel engine
Loading...
Searching...
No Matches
PlayerModel Class Reference

#include <Model.hpp>

Collaboration diagram for PlayerModel:
Collaboration graph

Classes

class  AttackAnimation
 
struct  Vertex
 
class  WalkAnimation
 

Public Member Functions

 PlayerModel ()
 
 ~PlayerModel ()
 
 PlayerModel (PlayerModel &other)=delete
 
 PlayerModel (PlayerModel &&other)=delete
 
PlayerModeloperator= (PlayerModel &other)=delete
 
PlayerModeloperator= (PlayerModel &&other)=delete
 

Static Public Attributes

static constexpr double player_height = 1.8
 
static constexpr double unit = player_height / 32.0
 
static constexpr glm::dvec3 chest_size = glm::dvec3(8.0, 12.0, 4.0) * unit
 
static constexpr glm::dvec3 head_size = glm::dvec3(8.0, 8.0, 8.0) * unit
 
static constexpr glm::dvec3 leg_size = glm::dvec3(4.0, 12.0, 4.0) * unit
 
static constexpr glm::dvec3 arm_size = glm::dvec3(4.0, 12.0, 4.0) * unit
 
static constexpr glm::vec3 chest_pos = glm::vec3{0.0, leg_size.y, 0.0}
 
static constexpr glm::vec3 head_pos = glm::vec3{0.0, chest_size.y, 0.0}
 
static constexpr glm::vec3 left_leg_pos = glm::vec3{-leg_size.x / 2, 0.0, 0.0}
 
static constexpr glm::vec3 right_leg_pos = glm::vec3{leg_size.x / 2, 0.0, 0.0}
 
static constexpr glm::vec3 left_arm_pos = glm::vec3{-(arm_size.x / 2 + chest_size.x / 2), 0.0, 0.0}
 
static constexpr glm::vec3 right_arm_pos = glm::vec3{(arm_size.x / 2 + chest_size.x / 2), 0.0, 0.0}
 

Constructor & Destructor Documentation

◆ PlayerModel() [1/3]

PlayerModel::PlayerModel ( )
inline

◆ ~PlayerModel()

PlayerModel::~PlayerModel ( )
inline

◆ PlayerModel() [2/3]

PlayerModel::PlayerModel ( PlayerModel other)
delete

◆ PlayerModel() [3/3]

PlayerModel::PlayerModel ( PlayerModel &&  other)
delete

Member Function Documentation

◆ operator=() [1/2]

PlayerModel & PlayerModel::operator= ( PlayerModel &&  other)
delete

◆ operator=() [2/2]

PlayerModel & PlayerModel::operator= ( PlayerModel other)
delete

Member Data Documentation

◆ arm_size

constexpr glm::dvec3 PlayerModel::arm_size = glm::dvec3(4.0, 12.0, 4.0) * unit
inlinestaticconstexpr

◆ chest_pos

constexpr glm::vec3 PlayerModel::chest_pos = glm::vec3{0.0, leg_size.y, 0.0}
inlinestaticconstexpr

◆ chest_size

constexpr glm::dvec3 PlayerModel::chest_size = glm::dvec3(8.0, 12.0, 4.0) * unit
inlinestaticconstexpr

◆ head_pos

constexpr glm::vec3 PlayerModel::head_pos = glm::vec3{0.0, chest_size.y, 0.0}
inlinestaticconstexpr

◆ head_size

constexpr glm::dvec3 PlayerModel::head_size = glm::dvec3(8.0, 8.0, 8.0) * unit
inlinestaticconstexpr

◆ left_arm_pos

constexpr glm::vec3 PlayerModel::left_arm_pos = glm::vec3{-(arm_size.x / 2 + chest_size.x / 2), 0.0, 0.0}
inlinestaticconstexpr

◆ left_leg_pos

constexpr glm::vec3 PlayerModel::left_leg_pos = glm::vec3{-leg_size.x / 2, 0.0, 0.0}
inlinestaticconstexpr

◆ leg_size

constexpr glm::dvec3 PlayerModel::leg_size = glm::dvec3(4.0, 12.0, 4.0) * unit
inlinestaticconstexpr

◆ player_height

constexpr double PlayerModel::player_height = 1.8
inlinestaticconstexpr

◆ right_arm_pos

constexpr glm::vec3 PlayerModel::right_arm_pos = glm::vec3{(arm_size.x / 2 + chest_size.x / 2), 0.0, 0.0}
inlinestaticconstexpr

◆ right_leg_pos

constexpr glm::vec3 PlayerModel::right_leg_pos = glm::vec3{leg_size.x / 2, 0.0, 0.0}
inlinestaticconstexpr

◆ unit

constexpr double PlayerModel::unit = player_height / 32.0
inlinestaticconstexpr

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