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