Manages the creation, rendering, and collision detection of obstacles.
More...
#include <ObstacleListManager.h>
|
void | flush_activate_obsticals_once () |
| Updates active obstacles.
|
|
void | set_obstacle_speed (int speed) |
| Sets obstacle movement speed.
|
|
Manages the creation, rendering, and collision detection of obstacles.
◆ ObstacleListManager()
ObstacleListManager::ObstacleListManager |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ activate_obstacle_cnt()
int ObstacleListManager::activate_obstacle_cnt |
( |
| ) |
const |
|
inline |
Gets count of active obstacles.
- Returns
- Number of currently active obstacles
◆ get_obstacle_speed()
int ObstacleListManager::get_obstacle_speed |
( |
| ) |
|
Gets current obstacle movement speed.
- Returns
- Current speed value
◆ get_pools()
QList< Obsticals * > ObstacleListManager::get_pools |
( |
| ) |
|
Gets all obstacle pools.
- Returns
- List of all obstacle instances
◆ get_should_render()
QList< Obsticals * > ObstacleListManager::get_should_render |
( |
| ) |
|
Gets obstacles that should be rendered.
- Returns
- List of active obstacles
◆ is_intersects()
bool ObstacleListManager::is_intersects |
( |
Dinasour * |
dinasour | ) |
|
Checks for collision with dinosaur.
- Parameters
-
dinasour | Pointer to dinosaur object |
- Returns
- True if collision detected
◆ max_obstacle_cnt()
int ObstacleListManager::max_obstacle_cnt |
( |
| ) |
const |
|
inline |
Gets maximum obstacle count.
- Returns
- Current maximum obstacle count
◆ pass_a_obstacle
void ObstacleListManager::pass_a_obstacle |
( |
ObstacleType |
type, |
|
|
Obsticals * |
which |
|
) |
| |
|
signal |
Emitted when an obstacle is passed.
- Parameters
-
type | Type of obstacle passed |
which | Specific obstacle instance |
◆ set_max_obstacle_cnt()
void ObstacleListManager::set_max_obstacle_cnt |
( |
short |
max_count | ) |
|
Sets maximum number of active obstacles.
- Parameters
-
max_count | Maximum obstacle count |
◆ set_obstacle_speed
void ObstacleListManager::set_obstacle_speed |
( |
int |
speed | ) |
|
|
slot |
Sets obstacle movement speed.
- Parameters
-
The documentation for this class was generated from the following files:
- extern_app/games/CCIMX_DinoGame/core/ObstacleListManager.h
- extern_app/games/CCIMX_DinoGame/core/ObstacleListManager.cpp