style: naming convention
This commit is contained in:
		
							
								
								
									
										20
									
								
								src/entity.h
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								src/entity.h
									
									
									
									
									
								
							| @@ -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: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user