Newer
Older
/*!
* \file personnage.h
* \brief Character Header File
* \authors Lucile
* \date 25/02/2021
*
* Character structure and functions definition.
#ifndef GAME_INSA_PROJECT_PERSONNAGE_H
#define GAME_INSA_PROJECT_PERSONNAGE_H
* \brief Character structure
*/
typedef struct {
int up; /**< Position : x hight-left point */
int down; /**< Position : y hight-left point */
int left; /**< Size : length */
int right; /**< Size : width */
} Direction;
int x_pers; /**< Position : x hight-left point */
int y_pers; /**< Position : y hight-left point */
int long_pers; /**< Size : length */
int larg_pers; /**< Size : width */
int x_hr; /**< Position : x hight-right point */
int y_hr; /**< Position : y hight-right point */
int x_ll; /**< Position : x low-left point */
int y_ll; /**< Position : y low-left point */
int x_lr; /**< Position : x low-right point */
int y_lr; /**< Position : y low-right point */
char * image_pers; /**< Source image of the character. */
void init_pers(Personnage * character, int x, int y, int length, int width, int speed, char * path);
void calcul_points_pers(Personnage * character);