seminar13 - arkanoid finally splitted
This commit is contained in:
		
							parent
							
								
									c74f48cd9b
								
							
						
					
					
						commit
						a8bfa80d23
					
				
					 6 changed files with 18 additions and 10 deletions
				
			
		|  | @ -2,9 +2,9 @@ | ||||||
| #include <SFML/Graphics.hpp> | #include <SFML/Graphics.hpp> | ||||||
| #include <list> | #include <list> | ||||||
| #include <cmath> | #include <cmath> | ||||||
|  | 
 | ||||||
| #include "arkanoid.hpp" | #include "arkanoid.hpp" | ||||||
| #include "ball.hpp" | #include "bonus.hpp" | ||||||
| #include "paddle.hpp" |  | ||||||
| 
 | 
 | ||||||
| const double pi = 3.14159265358979323846; | const double pi = 3.14159265358979323846; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,9 +1,10 @@ | ||||||
| #pragma once | #pragma once | ||||||
| #include <list> | #include <list> | ||||||
|  | 
 | ||||||
| #include "ball.hpp" | #include "ball.hpp" | ||||||
| //class Ball;
 |  | ||||||
| #include "brick_grid.hpp" | #include "brick_grid.hpp" | ||||||
| #include "bonus.hpp" | #include "paddle.hpp" | ||||||
|  | class Bonus; | ||||||
| 
 | 
 | ||||||
| class Arkanoid | class Arkanoid | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -1,5 +1,7 @@ | ||||||
| #include <cmath> | #include <cmath> | ||||||
| #include "ball.hpp" | #include "ball.hpp" | ||||||
|  | #include "brick_grid.hpp" | ||||||
|  | #include "paddle.hpp" | ||||||
| 
 | 
 | ||||||
| // Вспомагательные функции для работы с векторами типа sf::Vector2f
 | // Вспомагательные функции для работы с векторами типа sf::Vector2f
 | ||||||
| float operator*(const sf::Vector2f& first, const sf::Vector2f& second) | float operator*(const sf::Vector2f& first, const sf::Vector2f& second) | ||||||
|  |  | ||||||
|  | @ -1,6 +1,9 @@ | ||||||
| #pragma once | #pragma once | ||||||
| #include "brick_grid.hpp" | #include <SFML/Window.hpp> | ||||||
| #include "paddle.hpp" | #include <SFML/Graphics.hpp> | ||||||
|  | 
 | ||||||
|  | class BrickGrid; | ||||||
|  | class Paddle; | ||||||
| 
 | 
 | ||||||
| struct Ball | struct Ball | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -1,9 +1,9 @@ | ||||||
| #include <SFML/Window.hpp> |  | ||||||
| #include <SFML/Graphics.hpp> |  | ||||||
| #include <cmath> | #include <cmath> | ||||||
| 
 | 
 | ||||||
| #include "bonus.hpp" | #include "bonus.hpp" | ||||||
| #include "arkanoid.hpp" | #include "arkanoid.hpp" | ||||||
|  | #include "ball.hpp" | ||||||
|  | #include "paddle.hpp" | ||||||
| 
 | 
 | ||||||
| const double pi = 3.14159265358979323846; | const double pi = 3.14159265358979323846; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,6 +1,8 @@ | ||||||
| #pragma once | #pragma once | ||||||
| #include "paddle.hpp" | #include <SFML/Window.hpp> | ||||||
| #include "ball.hpp" | #include <SFML/Graphics.hpp> | ||||||
|  | class Paddle; | ||||||
|  | class Ball; | ||||||
| class Arkanoid; | class Arkanoid; | ||||||
| 
 | 
 | ||||||
| class Bonus | class Bonus | ||||||
|  |  | ||||||
		Reference in a new issue