seminar13 - arkanoid finally splitted

This commit is contained in:
nihonium 2023-01-04 14:56:03 +03:00
parent c74f48cd9b
commit a8bfa80d23
Signed by: nihonium
GPG key ID: 0251623741027CFC
6 changed files with 18 additions and 10 deletions

View file

@ -2,9 +2,9 @@
#include <SFML/Graphics.hpp>
#include <list>
#include <cmath>
#include "arkanoid.hpp"
#include "ball.hpp"
#include "paddle.hpp"
#include "bonus.hpp"
const double pi = 3.14159265358979323846;

View file

@ -1,9 +1,10 @@
#pragma once
#include <list>
#include "ball.hpp"
//class Ball;
#include "brick_grid.hpp"
#include "bonus.hpp"
#include "paddle.hpp"
class Bonus;
class Arkanoid
{

View file

@ -1,5 +1,7 @@
#include <cmath>
#include "ball.hpp"
#include "brick_grid.hpp"
#include "paddle.hpp"
// Вспомагательные функции для работы с векторами типа sf::Vector2f
float operator*(const sf::Vector2f& first, const sf::Vector2f& second)

View file

@ -1,6 +1,9 @@
#pragma once
#include "brick_grid.hpp"
#include "paddle.hpp"
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
class BrickGrid;
class Paddle;
struct Ball
{

View file

@ -1,9 +1,9 @@
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include <cmath>
#include "bonus.hpp"
#include "arkanoid.hpp"
#include "ball.hpp"
#include "paddle.hpp"
const double pi = 3.14159265358979323846;

View file

@ -1,6 +1,8 @@
#pragma once
#include "paddle.hpp"
#include "ball.hpp"
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
class Paddle;
class Ball;
class Arkanoid;
class Bonus