Added memorybook to parsing and cleaned most of the files
This commit is contained in:
@@ -1,3 +1,15 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* cube3d_proto.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: pblagoje <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/05/04 13:36:55 by pblagoje #+# #+# */
|
||||
/* Updated: 2022/05/04 13:38:53 by pblagoje ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef CUBE3D_PROTO_H
|
||||
# define CUBE3D_PROTO_H
|
||||
|
||||
@@ -6,59 +18,56 @@
|
||||
// -------------------------------
|
||||
// cube3d.c
|
||||
void destroy_mlx(void *param);
|
||||
int shut_down();
|
||||
|
||||
int shut_down(void);
|
||||
|
||||
// -------------------------------
|
||||
// SRC/INIT
|
||||
// -------------------------------
|
||||
// init_struct.c
|
||||
t_game *init_struct(void);
|
||||
t_game *init_struct(void);
|
||||
// init_game.c
|
||||
void init_game(t_game *game);
|
||||
void init_game(t_game *game);
|
||||
// init_textures.c
|
||||
void init_txtr(t_txt *txt, void *mlx_ptr);
|
||||
|
||||
|
||||
// -------------------------------
|
||||
// SRC/GNL
|
||||
// -------------------------------
|
||||
// get_next_line.c
|
||||
int get_next_line(int fd, char **line);
|
||||
|
||||
int get_next_line(int fd, char **line);
|
||||
|
||||
// -------------------------------
|
||||
// SRC/PARSING
|
||||
// -------------------------------
|
||||
// init_parsing.c
|
||||
int init_parsing(t_game *game, char *file);
|
||||
int init_parsing(t_game *game, char *file);
|
||||
// check_extension.c
|
||||
int check_extension(char *filename, char *ext);
|
||||
int check_extension(char *filename, char *ext);
|
||||
// check_path.c
|
||||
int check_elements(t_game *game, char *file);
|
||||
int check_elements(t_game *game, char *file);
|
||||
// check_rgb.c
|
||||
int check_rgb(t_txt *txt, char *element, char identifier);
|
||||
// check_map.c
|
||||
int check_map(t_map *map);
|
||||
|
||||
int check_rgb(t_txt *txt, char *element, char identifier);
|
||||
// check_map_borders.c
|
||||
int check_map(t_map *map);
|
||||
// check_map_content.c
|
||||
int check_content(t_map *map);
|
||||
|
||||
// -------------------------------
|
||||
// SRC/HOOK
|
||||
// -------------------------------
|
||||
// keyhook.c
|
||||
int keypress(int keycode, t_game *game);
|
||||
int keyrelease(int keycode, t_game *game);
|
||||
int hook_action(t_game *game);
|
||||
int keypress(int keycode, t_game *game);
|
||||
int keyrelease(int keycode, t_game *game);
|
||||
int hook_action(t_game *game);
|
||||
// key_action_1.c
|
||||
int is_esc(int *k_hook, int *is_action);
|
||||
int is_go_left(int *k_hook, int *is_action);
|
||||
int is_go_right(int *k_hook, int *is_action);
|
||||
int is_go_forward(int *k_hook, int *is_action);
|
||||
int is_go_backward(int *k_hook, int *is_action);
|
||||
int is_esc(int *k_hook, int *is_action);
|
||||
int is_go_left(int *k_hook, int *is_action);
|
||||
int is_go_right(int *k_hook, int *is_action);
|
||||
int is_go_forward(int *k_hook, int *is_action);
|
||||
int is_go_backward(int *k_hook, int *is_action);
|
||||
// key_action_2.c
|
||||
int is_turn_left(int *k_hook, int *is_action);
|
||||
int is_turn_right(int *k_hook, int *is_action);
|
||||
|
||||
int is_turn_left(int *k_hook, int *is_action);
|
||||
int is_turn_right(int *k_hook, int *is_action);
|
||||
|
||||
// -------------------------------
|
||||
// SRC/PLAYER
|
||||
@@ -75,8 +84,8 @@ void plr_turn(t_plr *plr, int deg);
|
||||
void plr_turn_right(t_plr *plr);
|
||||
void plr_turn_left(t_plr *plr);
|
||||
// player_limits.c
|
||||
int is_wall(t_game *game, int cell_x, int cell_y);
|
||||
int plr_out_limits(t_game *game, int x, int y);
|
||||
int is_wall(t_game *game, int cell_x, int cell_y);
|
||||
int plr_out_limits(t_game *game, int x, int y);
|
||||
|
||||
// -------------------------------
|
||||
// SRC/DRAW
|
||||
|
||||
Reference in New Issue
Block a user