|
PGR Copakond OpenGL Engine - Bowling
|
Core logic manager handling bowling rules, scoring, and lane interactions. More...
#include <bowlingGame.h>
Public Member Functions | |
| BowlingGame (Camera *camera) | |
| void | update (float deltaTime) |
| Evaluates pin states and manages game progression. | |
| void | pickBowlingBall (Mesh *bowlingBall, float power=2.0f) |
| Attaches ball to player and prepares for throw. | |
| void | throwBall (float power=2.0f) |
| Releases ball with current velocity and direction. | |
| void | toggleDoor1 () |
| void | toggleDoor2 () |
| void | toggleDoor3 () |
| void | toggleDoor4 () |
| void | turnOffAllLights () |
| void | resetLights () |
| void | setDiscoMode () |
Public Attributes | |
| RigidBody * | player = nullptr |
| Mesh * | door1 = nullptr |
| Mesh * | door2 = nullptr |
| Mesh * | door3 = nullptr |
| Mesh * | door4 = nullptr |
| std::vector< CollisionPin * > | pins |
| RigidSphere * | bowlingBall = nullptr |
| TextLabel * | scoreLabel1 |
| TextLabel * | scoreLabel2 |
| TextLabel * | scoreLabel3 |
| TextLabel * | scoreLabel4 |
| ImageSequenceLabel * | videoSplit1 |
| ImageSequenceLabel * | videoSpare2 |
| ImageSequenceLabel * | videoStrike3 |
| ImageSequenceLabel * | videoMiss4 |
| ImageSequenceLabel * | videoEnd5 |
| ImageSequenceLabel * | videoIdle1 |
| ImageSequenceLabel * | videoIdle2 |
| ImageSequenceLabel * | videoIdle3 |
| ImageSequenceLabel * | videoIdle4 |
| std::vector< BowlingLightData > | arenaLights |
| BowlingLightMode | lightMode = BowlingLightMode::NORMAL |
Core logic manager handling bowling rules, scoring, and lane interactions.
|
inline |
| void copakond::BowlingGame::pickBowlingBall | ( | Mesh * | bowlingBall, |
| float | power = 2.0f ) |
Attaches ball to player and prepares for throw.
| void copakond::BowlingGame::resetLights | ( | ) |
| void copakond::BowlingGame::setDiscoMode | ( | ) |
| void copakond::BowlingGame::throwBall | ( | float | power = 2.0f | ) |
Releases ball with current velocity and direction.
| void copakond::BowlingGame::toggleDoor1 | ( | ) |
| void copakond::BowlingGame::toggleDoor2 | ( | ) |
| void copakond::BowlingGame::toggleDoor3 | ( | ) |
| void copakond::BowlingGame::toggleDoor4 | ( | ) |
| void copakond::BowlingGame::turnOffAllLights | ( | ) |
| void copakond::BowlingGame::update | ( | float | deltaTime | ) |
Evaluates pin states and manages game progression.
| std::vector<BowlingLightData> copakond::BowlingGame::arenaLights |
| RigidSphere* copakond::BowlingGame::bowlingBall = nullptr |
| Mesh* copakond::BowlingGame::door1 = nullptr |
| Mesh* copakond::BowlingGame::door2 = nullptr |
| Mesh* copakond::BowlingGame::door3 = nullptr |
| Mesh* copakond::BowlingGame::door4 = nullptr |
| BowlingLightMode copakond::BowlingGame::lightMode = BowlingLightMode::NORMAL |
| std::vector<CollisionPin*> copakond::BowlingGame::pins |
| RigidBody* copakond::BowlingGame::player = nullptr |
| TextLabel* copakond::BowlingGame::scoreLabel1 |
| TextLabel* copakond::BowlingGame::scoreLabel2 |
| TextLabel* copakond::BowlingGame::scoreLabel3 |
| TextLabel* copakond::BowlingGame::scoreLabel4 |
| ImageSequenceLabel* copakond::BowlingGame::videoEnd5 |
| ImageSequenceLabel* copakond::BowlingGame::videoIdle1 |
| ImageSequenceLabel* copakond::BowlingGame::videoIdle2 |
| ImageSequenceLabel* copakond::BowlingGame::videoIdle3 |
| ImageSequenceLabel* copakond::BowlingGame::videoIdle4 |
| ImageSequenceLabel* copakond::BowlingGame::videoMiss4 |
| ImageSequenceLabel* copakond::BowlingGame::videoSpare2 |
| ImageSequenceLabel* copakond::BowlingGame::videoSplit1 |
| ImageSequenceLabel* copakond::BowlingGame::videoStrike3 |