Definition at line 12 of file Obstacle.h.
◆ Obstacle()
| Obstacle::Obstacle |
( |
ObstacleType | t, |
|
|
float | x = 12.0f ) |
◆ collidesWith()
| bool Obstacle::collidesWith |
( |
const glm::vec2 & | otherPos, |
|
|
const glm::vec2 & | otherSize ) const |
◆ getBottomY()
| float Obstacle::getBottomY |
( |
| ) |
const |
|
inline |
◆ reset()
| void Obstacle::reset |
( |
float | x = 12.0f | ) |
|
◆ update()
◆ active
| bool Obstacle::active = true |
◆ colour
| glm::vec4 Obstacle::colour {1.0f, 0.5f, 0.0f, 1.0f} |
◆ emitter
Initial value:{
{0, 0},
{1, 1},
{1, 1, 1, 1}
}
Definition at line 22 of file Obstacle.h.
◆ pos
| glm::vec2 Obstacle::pos {12.0f, 0.0f} |
◆ size
| glm::vec2 Obstacle::size {1.0f, 1.0f} |
◆ speed
| float Obstacle::speed = 5.0f |
◆ type
| ObstacleType Obstacle::type = ObstacleType::SmallBox |
The documentation for this class was generated from the following files: