[ADD] Commented main_character h and cpp files
This commit is contained in:
@@ -5,12 +5,32 @@
|
||||
|
||||
namespace entities
|
||||
{
|
||||
class main_character : public CollisionEntity {
|
||||
const float SPEED = 1.0f;
|
||||
const float UP_SPEED = 0.6f;
|
||||
/*
|
||||
* This class contains the information about the player model
|
||||
*/
|
||||
class MainCharacter : public CollisionEntity {
|
||||
const float SIDE_SPEED = 0.8f; //Standard movement speed for left/right movement
|
||||
const float UP_SPEED = 2.0f; //Standard movement speed for up movement
|
||||
public:
|
||||
main_character(const models::TexturedModel& model, const glm::vec3& position,
|
||||
/*
|
||||
* @brief: Constructor for the main character model
|
||||
*
|
||||
* @param model: Model to load in as the player model
|
||||
* @param position: Position of the model inside the game window
|
||||
* @param rotation: Rotation of the model inside the game window
|
||||
* @param scale: Size of the model
|
||||
* @param bounding_box: Collision box around the player model
|
||||
*/
|
||||
MainCharacter(const models::TexturedModel& model, const glm::vec3& position,
|
||||
const glm::vec3& rotation, float scale, const collision::Box& bounding_box);
|
||||
glm::vec3 move(GLFWwindow* window);
|
||||
|
||||
/*
|
||||
* @brief: A function to move the character inside the window
|
||||
*
|
||||
* @param window: The game window
|
||||
*
|
||||
* @return: Vector with the adjusted side_speed, down_speed, and movement_speed
|
||||
*/
|
||||
glm::vec3 Move(GLFWwindow* window);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user