style: naming convention

This commit is contained in:
2025-10-13 16:22:57 +02:00
parent f981cee4e0
commit f1a24f576b
16 changed files with 114 additions and 113 deletions

View File

@@ -6,44 +6,44 @@
class Entity {
public:
Entity();
virtual ~Entity()
{
}
virtual ~Entity() = default;
const glm::vec3& getPosition() const
[[nodiscard]] const glm::vec3& position() const
{
return position_;
}
void setPosition(const glm::vec3& pos)
void set_position(const glm::vec3& pos)
{
position_ = pos;
}
const glm::vec3& getRotation() const
[[nodiscard]] const glm::vec3& rotation() const
{
return rotation_;
}
void setRotation(const glm::vec3& rot)
void set_rotation(const glm::vec3& rot)
{
rotation_ = rot;
}
const glm::vec3& getScale() const
[[nodiscard]] const glm::vec3& scale() const
{
return scale_;
}
void setScale(const glm::vec3& scale)
void set_scale(const glm::vec3& scale)
{
scale_ = scale;
}
void move(const glm::vec3& vec);
virtual void update(float deltaTime)
virtual void update(float delta_time)
{
// ...
}
virtual void draw()
{
// ...
}
protected: