Cleaning up

This commit is contained in:
Anonymus Raccoon
2020-03-27 14:28:03 +01:00
parent 97e73361fb
commit a58891d94f
44 changed files with 15 additions and 995 deletions
-26
View File
@@ -1,26 +0,0 @@
//
// Created by anonymus-raccoon on 3/3/20.
//
#ifndef _TEAMS_COMPONENT_C_
#define _TEAMS_COMPONENT_H_
#include "component.h"
typedef enum display_type
{
HAPPINESS_DISPLAY,
STUPIDITY_DISPLAY,
SELECT_TILE_DISPLAY
} display_type_enum;
struct game_display
{
gc_component base;
display_type_enum type;
};
const struct game_display game_display;
const struct gc_system game_display_system;
#endif //_TEAMS_COMPONENT_C_
-2
View File
@@ -10,8 +10,6 @@
struct game_manager
{
gc_component base;
int happiness;
int stupidity;
};
const struct game_manager game_manager;
@@ -1,28 +0,0 @@
//
// Created by anonymus-raccoon on 3/10/20.
//
#ifndef _MAP_MANAGER_COMPONENT_H_
#define _MAP_MANAGER_COMPONENT_H_
#include "component.h"
enum brush
{
MOVE,
RESET,
ROTATE,
TEXTURE
};
struct map_manager_component
{
gc_component base;
bool tile_mode;
enum brush brush;
void *selected_texture;
};
const struct map_manager_component map_manager_component;
#endif //_MAP_MANAGER_COMPONENT_H_
-25
View File
@@ -1,25 +0,0 @@
//
// Created by anonymus-raccoon on 3/3/20.
//
#ifndef _TEAMS_COMPONENT_C_
#define _TEAMS_COMPONENT_H_
#include "component.h"
struct teams_component
{
gc_component base;
float next_teams;
float delay;
char **prefabs;
int *prefabs_size;
int prefab_count;
};
const struct teams_component teams_component;
bool teams_move_up(gc_scene *scene, float amount, float y_level);
void pm_clicked(gc_engine *engine, gc_entity *entity);
#endif //_TEAMS_COMPONENT_C_
-28
View File
@@ -1,28 +0,0 @@
/*
** EPITECH PROJECT, 2020
** Gamacon
** File description:
** map_interactions
*/
#ifndef MY3D_MAP_INTERACTIONS_H
#define MY3D_MAP_INTERACTIONS_H
#include "engine.h"
#include "components/vertex_component.h"
#include "keybindings.h"
enum modes_on_tile {
VERTEX_0 = 2,
VERTEX_1 = 4,
VERTEX_2 = 8,
VERTEX_3 = 16,
ALL_VERTICES = 30,
INVERT_ADD_VALUE = 1
};
bool map_onclick(gc_engine *engine, gc_entity *entity, gc_vector2 pos, \
enum gc_mousekeys key);
#endif //MY3D_MAP_INTERACTIONS_H
+1 -9
View File
@@ -27,12 +27,4 @@ bool fullscreen(gc_engine *engine, gc_entity *entity, gc_vector2 _);
bool resolution_down(gc_engine *engine, gc_entity *entity, gc_vector2 _);
bool resolution_up(gc_engine *engine, gc_entity *entity, gc_vector2 _);
bool framerate_up(gc_engine *engine, gc_entity *entity, gc_vector2 _);
bool framerate_down(gc_engine *engine, gc_entity *entity, gc_vector2 _);
bool tile_select(gc_engine *engine, gc_entity *entity, gc_vector2 _);
bool vertex_select(gc_engine *engine, gc_entity *entity, gc_vector2 _);
bool up_down(gc_engine *engine, gc_entity *entity, gc_vector2 _);
bool reset(gc_engine *engine, gc_entity *entity, gc_vector2 _);
bool rotate(gc_engine *engine, gc_entity *entity, gc_vector2 _);
bool texture(gc_engine *engine, gc_entity *entity, gc_vector2 _);
bool switch_texture(gc_engine *engine, gc_entity *entity, gc_vector2 _);
bool framerate_down(gc_engine *engine, gc_entity *entity, gc_vector2 _);
-12
View File
@@ -1,12 +0,0 @@
//
// Created by anonymus-raccoon on 3/3/20.
//
#ifndef _TEAMS_SYSTEM_H_
#define _TEAMS_SYSTEM_H_
#include "system.h"
const gc_system teams_system;
#endif //_TEAMS_SYSTEM_H_
-17
View File
@@ -1,17 +0,0 @@
//
// Created by anonymus-raccoon on 3/9/20.
//
#ifndef _TEAMS_H_
#define _TEAMS_H_
#include <stdbool.h>
#include "engine.h"
bool absent_check(gc_engine *engine, int entity_id, gc_vector2 _);
bool absent_cross(gc_engine *engine, int entity_id, gc_vector2 _);
bool forgot_lmfao(gc_engine *engine, int entity_id, gc_vector2 _);
bool forgot_ok(gc_engine *engine, int entity_id, gc_vector2 _);
#endif //_TEAMS_H_