-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPillar.h
35 lines (30 loc) · 887 Bytes
/
Pillar.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef PILLAR_CLASS_H
#define PILLAR_CLASS_H
#include "Globals.h"
#include "Rectangle.h"
#include "Helpers/Mathematics.h"
// The pillar moves w.r.t. the origin which is located at top left corner of the screen
class Pillar {
private:
glm::vec3 translation;
glm::vec3 currentVelocity;
glm::vec3 initialPosition;
bool shouldMove;
public:
bool IsSelected = false;
bool IsInQueue = false;
Rectangle* upperRect;
Rectangle* lowerRect;
Pillar( const Primitives& primitives, glm::vec3 iPosition );
void Spawn();
void Update();
void Draw( Shader& shader, Camera& camera );
void Reset();
void MoveRectangles();
void IncreaseVelocity();
float GetXPos();
float GetYPos();
bool CanMove();
float GetCurrentVelocity();
};
#endif