<commit_before>#ifndef SDLhelpers_h
#define SDLhelpers_h
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
<<<<<<< HEAD

#include "../../MainGame/include/player.h"

/* Wraps all of the SDL objects into one struct */
typedef struct _SDL_container {
	SDL_Window *window;
	SDL_Renderer *renderer;
	SDL_Rect *camera;
	uint8_t *keyboardstate;
	SDL_Event event;
=======
#include <stdbool.h>

/* Wraps all of the SDL objects into one struct */
typedef struct _SDL_container {
	SDL_Window *  window;
	SDL_Renderer * renderer;
	SDL_Rect * camera;
	uint8_t * keyboardstate;
	struct {
		int x;
		int y;
		bool rightClick;
		bool leftClick;
	} mouse;
>>>>>>> 4c9faa5984b4e52558eceded451d0040cf60e870
} Container;


/* 
 * Create a new container
 */

Container * New_Container(int SCREEN_WIDTH, int SCREEN_HEIGHT);
void Container_Destroy(Container *container);
void Container_Refresh(Container *container);

/*  Functions for making parts of the wrapper */
SDL_Window * New_Window(int width, int height);
SDL_Renderer * New_Renderer(SDL_Window *window);

/*  Functions for updating the camera depending on the situation */

/* Update the camera with the arrow keys -- used in level editor*/
void Container_KeyBoardUpdateCamera(Container *c);

/* Update the camera using player position -- used in game */
void Container_PlayerUpdateCamera(Container *c, Player *p);

#endif<commit_msg>Fix weird commit issue<commit_after>#ifndef SDLhelpers_h
#define SDLhelpers_h
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>


#include "../../MainGame/include/player.h"

#include <stdbool.h>

/* Wraps all of the SDL objects into one struct */
typedef struct _SDL_container {
	SDL_Window *  window;
	SDL_Renderer * renderer;
	SDL_Rect * camera;
	uint8_t * keyboardstate;
	struct {
		int x;
		int y;
		bool rightClick;
		bool leftClick;
	} mouse;
} Container;



/* Create a new container */
Container * New_Container(int SCREEN_WIDTH, int SCREEN_HEIGHT);

void Container_Destroy(Container *container);

void Container_Refresh(Container *container);

/*  Functions for making parts of the wrapper */
SDL_Window * New_Window(int width, int height);
SDL_Renderer * New_Renderer(SDL_Window *window);

/*  Functions for updating the camera depending on the situation */

/* Update the camera with the arrow keys -- used in level editor*/
void Container_KeyBoardUpdateCamera(Container *c);

/* Update the camera using player position -- used in game */
void Container_PlayerUpdateCamera(Container *c, Player *p);

#endif
{'fraction_non_alphanumeric': 0.10369774919614148, 'fraction_numerical': 0.012459807073954984, 'mean_word_length': 4.761574074074074, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '210959', 'n_tokens_mistral': 846, 'n_tokens_neox': 779, 'n_words': 248}