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