C++ Project 2016-2017: Arkanoid
Public Member Functions | List of all members
SFMLFactory Class Reference

Factory: Creates EntitySFML. More...

#include <sfml_factory.h>

Inheritance diagram for SFMLFactory:
EntityFactory

Public Member Functions

 SFMLFactory (sf::RenderWindow &window)
 
unique_ptr< arkanoid::PlayercreatePlayer ()
 
vector< unique_ptr< arkanoid::Wall > > createWalls ()
 
vector< unique_ptr< arkanoid::Block > > createBlocks (const string &file)
 
unique_ptr< arkanoid::BallcreateBall ()
 

Detailed Description

Factory: Creates EntitySFML.

Definition at line 20 of file sfml_factory.h.

Constructor & Destructor Documentation

◆ SFMLFactory()

SFMLFactory::SFMLFactory ( sf::RenderWindow &  window)

Constructor.

Parameters
windowThe SFML window.

Definition at line 23 of file sfml_factory.cpp.

Member Function Documentation

◆ createBall()

unique_ptr< arkanoid::Ball > SFMLFactory::createBall ( )
virtual

Creates the arkanoidSFML::BallSFML.

Returns
The arkanoidSFML::BallSFML.

Implements EntityFactory.

Definition at line 124 of file sfml_factory.cpp.

◆ createBlocks()

vector< unique_ptr< arkanoid::Block > > SFMLFactory::createBlocks ( const string &  file)
virtual

Creates all the arkanoidSFML::BlockSFML.

Parameters
fileThe file where all the arkanoidSFML::BlockSFML are specified.
Returns
List of all the arkanoidSFML::BlockSFML.

Implements EntityFactory.

Definition at line 54 of file sfml_factory.cpp.

◆ createPlayer()

unique_ptr< arkanoid::Player > SFMLFactory::createPlayer ( )
virtual

Creates the arkanoidSFML::PlayerSFML.

Returns
The arkanoidSFML::PlayerSFML.

Implements EntityFactory.

Definition at line 25 of file sfml_factory.cpp.

◆ createWalls()

vector< unique_ptr< arkanoid::Wall > > SFMLFactory::createWalls ( )
virtual

Creates all the arkanoidSFML::WallSFML.

Returns
List of all the arkanoidSFML::WallSFML.

Implements EntityFactory.

Definition at line 30 of file sfml_factory.cpp.


The documentation for this class was generated from the following files: