35 #ifndef _TetrisBrick_H__ 36 #define _TetrisBrick_H__ 59 virtual void moveFrontBack(
const Vector2& value)
override;
60 virtual void moveRightLeft(
const Vector2& value)
override;
61 virtual void changedPlayer()
override;
63 bool isValidMove(
const Vector3& position,
bool isRotation);
65 {
return this->brickStones_.size(); }
69 { assert(tetris); tetris_ = tetris; }
71 {
return this->rotationCount_;}
76 void createBrick(
void);
86 { this->delay_ =
false; }
88 { this->lockRotation_ =
false; }
91 {
return this->size_; }
Timer rotationTimer_
Definition: TetrisBrick.h:100
unsigned int stonesPerBrick_
So many stones are contained in this brick.
Definition: TetrisBrick.h:81
unsigned int rotationCount_
Stores the bricks orientation.
Definition: TetrisBrick.h:98
unsigned int getNumberOfStones(void) const
Definition: TetrisBrick.h:64
float getSize(void) const
Definition: TetrisBrick.h:90
ContainerClass in order to create TetrisBricks by combining TetrisStones.
Definition: TetrisBrick.h:53
virtual ~TetrisBrick()
Definition: TetrisBrick.h:57
Shared library macros, enums, constants and forward declarations for the tetris module ...
Definition: TetrisCenterpoint.h:58
void unlockRotation(void)
Definition: TetrisBrick.h:87
Declaration of the Timer class, used to call functions after a given time-interval.
unsigned int shapeIndex_
My way to represent the different brick shapes.
Definition: TetrisBrick.h:80
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Timer delayTimer_
Definition: TetrisBrick.h:99
void enableMovement(void)
Definition: TetrisBrick.h:85
Definition: TetrisStone.h:53
#define _TetrisExport
Definition: TetrisPrereqs.h:58
float size_
The dimensions a stone has in the game world. //TODO: get stone dimensions.
Definition: TetrisBrick.h:94
std::vector< TetrisStone * > brickStones_
A list of all stones in a brick.
Definition: TetrisBrick.h:82
bool delay_
Definition: TetrisBrick.h:95
Timer is a helper class that executes a function after a given amount of seconds in game-time...
Definition: Timer.h:105
Tetris * tetris_
!< This timer is used to filter out multiple rotation inputs.
Definition: TetrisBrick.h:101
The ControllableEntity is derived from the orxonox::MobileEntity.
Definition: ControllableEntity.h:48
void setGame(Tetris *tetris)
Definition: TetrisBrick.h:68
unsigned int getRotationCount(void)
Definition: TetrisBrick.h:70
bool lockRotation_
Definition: TetrisBrick.h:96