C++ Project 2016-2017: Arkanoid
ball_speed_block.cpp
Go to the documentation of this file.
1 
3 #include "ball_speed_block.h"
4 
5 #include <iostream>
6 
7 using namespace std;
8 
9 namespace arkanoid {
10 
11  BallSpeedBlock::BallSpeedBlock() {}
12 
13  BallSpeedBlock::BallSpeedBlock(double x, double y, double speedF, pair<double, double> size) : speedFactor(speedF), Block(x, y, size) {}
14 
16 
18  Block::update();
19  }
20 
21  void BallSpeedBlock::draw() const {
22  Block::draw();
23  }
24 
25  void BallSpeedBlock::effectBall(unique_ptr<Ball> &ball) const {
26  ball->speedUp(speedFactor);
27  }
28 
29 }
void effectBall(unique_ptr< Ball > &ball) const
void draw() const
Definition: block.cpp:20
void update()
Definition: block.cpp:18
The Block in the Arkanoid game, can be hit and destroyed by the Player.
Definition: block.h:18
All the game logic of the Arkanoid game.
Definition: ball.cpp:15