Skip to content
Snippets Groups Projects
prof.h 1.09 KiB
Newer Older
Corto.Cabantous's avatar
Corto.Cabantous committed
//
// Created by CABANTOUS corto on 18/02/2021.
//


Corto.Cabantous's avatar
Corto.Cabantous committed

/*!
 * \file prof.h
llebasca's avatar
llebasca committed
 * \brief Teacher Header File
 * \authors  Corto
Corto.Cabantous's avatar
Corto.Cabantous committed
 * \version 1
 * \date 25/02/2021
 *
llebasca's avatar
llebasca committed
 * Teacher structure and functions definiton.
Corto.Cabantous's avatar
Corto.Cabantous committed
 *
 */

#ifndef GAME_INSA_PROJECT_PROF_H
#define GAME_INSA_PROJECT_PROF_H

/*!
llebasca's avatar
llebasca committed
 * \struct Prof
 * \brief Teacher structure
Corto.Cabantous's avatar
Corto.Cabantous committed
 */

Corto.Cabantous's avatar
Corto.Cabantous committed
typedef struct {
Corto.Cabantous's avatar
Corto.Cabantous committed
    int x_prof; /**< Position : abscissa */
    int y_prof; /**< Position : ordinate */
    int long_prof; /**< Size : length */
Corto.Cabantous's avatar
Corto.Cabantous committed
    int larg_prof; /**< Size : width */
llebasca's avatar
llebasca committed
    int speed_prof; /**< Teacher speed */
Corto.Cabantous's avatar
Corto.Cabantous committed
    char * image_prof; /**< Source image of the character. */
    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 */
Corto.Cabantous's avatar
Corto.Cabantous committed

Le-Bao-Tin.Ha's avatar
Le-Bao-Tin.Ha committed
void init_prof(Prof * prof, int x, int y, int length, int width, int speed, char * path);

void calcul_points_prof(Prof * prof);
Corto.Cabantous's avatar
Corto.Cabantous committed
#endif /*GAME_INSA_PROJECT_Prof_H*/