Skip to content

Commit

Permalink
Create directory shared
Browse files Browse the repository at this point in the history
  • Loading branch information
autosquash committed Jan 16, 2024
1 parent 178535c commit 07fafea
Show file tree
Hide file tree
Showing 31 changed files with 75 additions and 68 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ add_executable(pizzeria
src/modelo_amplio/modelo_amplio.cpp
src/modelo_amplio/realizador.cpp
src/nivel.cpp
src/shared.cpp
src/shared/font.cpp
src/setup_juego.cpp
src/textos.cpp
src/tiempo.cpp
src/log_init.cpp
src/shared/log_init.cpp
src/vista/barras_progreso.cpp
src/vista/botones_app.cpp
src/vista/cadenas.cpp
Expand Down Expand Up @@ -133,10 +133,10 @@ add_executable(
src/modelo_amplio/realizador.cpp
src/nivel.cpp
src/setup_juego.cpp
src/shared.cpp
src/shared/font.cpp
src/textos.cpp
src/tiempo.cpp
src/log_init.cpp
src/shared/log_init.cpp
src/vista/barras_progreso.cpp
src/vista/botones_app.cpp
src/vista/cadenas.cpp
Expand Down
67 changes: 35 additions & 32 deletions dev/estructura.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
- main.cpp:
- juego.h
- log_init.h
- shared.h
- shared/dev.h
- shared/font.h
- shared/log_init.h

- _pruebas/main.cpp:
- _pruebas/class_a.h
Expand Down Expand Up @@ -43,16 +44,13 @@
- textos.h
- vista/grid.h

- log_init.cpp:
- log_init.h

- modelo/control_pizzas.cpp:
- modelo/control_pizzas.h
- templates/helpers.h

- modelo/control_pizzas.h:
- modelo/modelo.h
- shared.h
- shared/font.h

- modelo/datos_modelo_interno.h:
- modelo/control_pizzas.h
Expand All @@ -63,8 +61,8 @@

- modelo/encargos.cpp:
- modelo/encargos.h
- log_init.h
- modelo/dominio.h
- shared/log_init.h
- templates/helpers.h

- modelo/encargos.h:
Expand Down Expand Up @@ -111,8 +109,9 @@
- modelo_amplio/realizador.cpp:
- modelo_amplio/realizador.h
- fase_nivel.h
- log_init.h
- modelo_amplio/modelo_amplio.h
- shared/dev.h
- shared/log_init.h

- modelo_amplio/realizador.h:
- modelo_amplio/realizador_base.h
Expand All @@ -125,14 +124,14 @@
- controlador_clicks.h
- datos_nivel.h
- fase_nivel.h
- log_init.h
- modelo_amplio/aplicador.h
- shared_num_nivel.h
- shared/log_init.h
- shared/num_nivel.h

- nivel.h:
- globales.h
- modelo_amplio/modelo_amplio.h
- shared.h
- shared/font.h
- tiempo.h
- vista/enlace_vista.h
- vista/grid.h
Expand All @@ -146,8 +145,11 @@
- vista/cadenas.h
- vista/vista_data.h

- shared.cpp:
- shared.h
- shared/font.cpp:
- shared/font.h

- shared/log_init.cpp:
- shared/log_init.h

- tests/modelo/test_encargadas.cpp:
- modelo/encargos.h
Expand Down Expand Up @@ -185,10 +187,10 @@
- vista/cadenas.h

- tests/test_main.cpp:
- log_init.h
- shared/log_init.h

- tests/test_num_nivel.cpp:
- shared_num_nivel.h
- shared/num_nivel.h

- tests/test_tiempo.cpp:
- tiempo.h
Expand All @@ -207,12 +209,12 @@

- textos.cpp:
- textos.h
- log_init.h
- shared/log_init.h
- vista/cadenas.h

- textos.h:
- shared.h
- shared_num_nivel.h
- shared/font.h
- shared/num_nivel.h

- tiempo.cpp:
- tiempo.h
Expand Down Expand Up @@ -254,7 +256,7 @@
- vista/componentes/varios.h

- vista/componentes/barra_progreso.h:
- shared.h
- shared/font.h

- vista/componentes/boton_con_texto.cpp:
- vista/componentes/boton_con_texto.h
Expand All @@ -266,7 +268,7 @@
- vista/componentes/componente.h

- vista/componentes/boton_data.h:
- shared.h
- shared/font.h

- vista/componentes/botones.cpp:
- vista/componentes/botones.h
Expand All @@ -279,12 +281,12 @@
- vista/componentes/varios.h

- vista/componentes/varios.h:
- shared.h
- shared/font.h

- vista/enlace_vista.cpp:
- vista/enlace_vista.h
- fase_nivel.h
- log_init.h
- shared/log_init.h
- templates/helpers.h
- vista/presentador.h

Expand All @@ -307,8 +309,8 @@
- vista/etiquetas/etiquetas.h:
- modelo/control_pizzas.h
- modelo/modelo.h
- shared.h
- shared_num_nivel.h
- shared/font.h
- shared/num_nivel.h
- vista/presentacion_vista.h
- vista/vista_shared.h

Expand All @@ -320,7 +322,7 @@
- vista/componentes/varios.h

- vista/etiquetas/etiquetas_barra_estado.h:
- shared.h
- shared/font.h

- vista/etiquetas/etiquetas_contadores.cpp:
- vista/etiquetas/etiquetas_contadores.h
Expand All @@ -338,14 +340,14 @@

- vista/etiquetas/etiquetas_info.cpp:
- vista/etiquetas/etiquetas_info.h
- log_init.h
- shared/log_init.h
- textos.h
- vista/basicos_vista.h
- vista/componentes/varios.h

- vista/etiquetas/etiquetas_info.h:
- shared.h
- shared_num_nivel.h
- shared/font.h
- shared/num_nivel.h
- vista/presentacion_vista.h

- vista/etiquetas/fabrica_etiquetas_contadores.cpp:
Expand All @@ -354,7 +356,7 @@
- vista/componentes/varios.h

- vista/etiquetas/fabrica_etiquetas_contadores.h:
- shared.h
- shared/font.h

- vista/grid.cpp:
- vista/grid.h
Expand All @@ -367,7 +369,7 @@

- vista/paneles.h:
- modelo/modelo.h
- shared.h
- shared/font.h
- vista/barras_progreso.h
- vista/componentes/varios.h

Expand All @@ -386,8 +388,9 @@
- vista/vista.cpp:
- vista/vista.h
- fase_nivel.h
- log_init.h
- shared_num_nivel.h
- shared/dev.h
- shared/log_init.h
- shared/num_nivel.h
- templates/helpers.h
- vista/basicos_vista.h
- vista/grid.h
Expand Down
2 changes: 1 addition & 1 deletion src/demos/boost_log.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "boost_log.h"

#include "../log_init.h"
#include "../shared/log_init.h"
#include <iostream>

int demo_boost_log() {
Expand Down
2 changes: 1 addition & 1 deletion src/demos/demo_nivel.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../shared_num_nivel.h"
#include "../shared/num_nivel.h"
#include <memory>

int demo_nivel(NumNivelOpcional numero_nivel);
5 changes: 3 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
#include "demos/visual.h"
#include "demos/visual_textos.h"
#include "juego.h"
#include "log_init.h"
#include "shared.h"
#include "shared/dev.h"
#include "shared/font.h"
#include "shared/log_init.h"
#include <cassert>
#include <iostream>
#include <map>
Expand Down
2 changes: 1 addition & 1 deletion src/modelo/control_pizzas.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../shared.h"
#include "../shared/font.h"
#include "modelo.h"
#include <vector>

Expand Down
2 changes: 1 addition & 1 deletion src/modelo/encargos.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "encargos.h"
#include "../log_init.h"
#include "../shared/log_init.h"
#include "../templates/helpers.h"
#include "dominio.h"
#include <cassert>
Expand Down
3 changes: 2 additions & 1 deletion src/modelo_amplio/realizador.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "realizador.h"
#include "../fase_nivel.h"
#include "../log_init.h"
#include "../shared/dev.h"
#include "../shared/log_init.h"
#include "modelo_amplio.h"
#include <cassert>

Expand Down
4 changes: 2 additions & 2 deletions src/nivel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
#include "controlador_clicks.h"
#include "datos_nivel.h"
#include "fase_nivel.h"
#include "log_init.h"
#include "shared/log_init.h"
#include "modelo_amplio/aplicador.h"
#include "shared_num_nivel.h"
#include "shared/num_nivel.h"
#include <SFML/System/Time.hpp>
#include <SFML/Window/Event.hpp>
#include <cassert>
Expand Down
2 changes: 1 addition & 1 deletion src/nivel.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "globales.h"
#include "modelo_amplio/modelo_amplio.h"
#include "shared.h"
#include "shared/font.h"
#include "tiempo.h"
#include "vista/enlace_vista.h"
#include "vista/grid.h"
Expand Down
3 changes: 3 additions & 0 deletions src/shared/dev.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#pragma once

constexpr bool MODO_DESARROLLO = true;
2 changes: 1 addition & 1 deletion src/shared.cpp → src/shared/font.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "shared.h"
#include "font.h"
#include <SFML/Graphics/Font.hpp>
#include <cassert>
#include <memory>
Expand Down
2 changes: 0 additions & 2 deletions src/shared.h → src/shared/font.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

#include <memory>

constexpr bool MODO_DESARROLLO = true;

namespace sf {
class Font;
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/tests/test_main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "../log_init.h"
#include "../shared/log_init.h"
#include <gtest/gtest.h>

int main(int argc, char **argv) {
Expand Down
2 changes: 1 addition & 1 deletion src/tests/test_num_nivel.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "../shared_num_nivel.h"
#include "../shared/num_nivel.h"
#include <gtest/gtest.h>

TEST(NumNivelOpcional, SePuedeCrearSinArgumentos) { //
Expand Down
2 changes: 1 addition & 1 deletion src/textos.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "textos.h"
#include "log_init.h"
#include "shared/log_init.h"
#include "vista/cadenas.h"
#include <iostream>

Expand Down
4 changes: 2 additions & 2 deletions src/textos.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "shared.h"
#include "shared_num_nivel.h"
#include "shared/font.h"
#include "shared/num_nivel.h"
#include <memory>
#include <optional>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion src/vista/componentes/barra_progreso.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../../shared.h"
#include "../../shared/font.h"
#include <SFML/Graphics/RectangleShape.hpp>
#include <SFML/Graphics/RenderTarget.hpp>
#include <SFML/Graphics/Text.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/vista/componentes/boton_data.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../../shared.h"
#include "../../shared/font.h"
#include <SFML/Graphics/Color.hpp>
#include <optional>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion src/vista/componentes/varios.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

#pragma once

#include "../../shared.h"
#include "../../shared/font.h"
#include <SFML/Graphics/Color.hpp>
#include <SFML/System/Vector2.hpp>
#include <memory>
Expand Down
2 changes: 1 addition & 1 deletion src/vista/enlace_vista.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "enlace_vista.h"
#include "../fase_nivel.h"
#include "../log_init.h"
#include "../shared/log_init.h"
#include "../templates/helpers.h"
#include "presentador.h"
#include <SFML/Graphics/RenderTarget.hpp>
Expand Down
Loading

0 comments on commit 07fafea

Please sign in to comment.