#include <NonBlockingGame3D.h>
This class is an extension of the NonBlockingGame class to 3D game environments.
The games that can be created out of NonBlockingGame3D are currently based on terrain models and simple interactions with them
- Author
- Kalpathi Subramanian, Matthew Mcquaigue
- Date
- 9/22/22
◆ NonBlockingGame3D()
bridges::game::NonBlockingGame3D::NonBlockingGame3D |
( |
int |
assignmentID, |
|
|
std::string |
username, |
|
|
std::string |
apikey |
|
) |
| |
|
inline |
◆ ~NonBlockingGame3D()
virtual bridges::game::NonBlockingGame3D::~NonBlockingGame3D |
( |
| ) |
|
|
virtualdefault |
◆ getFrameRate()
double bridges::game::NonBlockingGame3D::getFrameRate |
( |
| ) |
const |
|
inlineprotected |
What frame rate is the game running at?
- Returns
- the target framerate. The game could be somewhat slower depending on how computationally expensive the gameloop is and on the speed of the network.
◆ keyA()
bool bridges::game::NonBlockingGame3D::keyA |
( |
| ) |
|
|
inlineprotected |
Is A currently pressed?
- Returns
- true if A is currently pressed
◆ keyD()
bool bridges::game::NonBlockingGame3D::keyD |
( |
| ) |
|
|
inlineprotected |
Is D currently pressed?
- Returns
- true if D is currently pressed
◆ keyDown()
bool bridges::game::NonBlockingGame3D::keyDown |
( |
| ) |
|
|
inlineprotected |
Is Down currently pressed?
- Returns
- true if Down is currently pressed
◆ keyLeft()
bool bridges::game::NonBlockingGame3D::keyLeft |
( |
| ) |
|
|
inlineprotected |
Is Left currently pressed?
- Returns
- true if Left is currently pressed
◆ keyQ()
bool bridges::game::NonBlockingGame3D::keyQ |
( |
| ) |
|
|
inlineprotected |
Is Q currently pressed?
- Returns
- true if S is currently pressed
◆ keyRight()
bool bridges::game::NonBlockingGame3D::keyRight |
( |
| ) |
|
|
inlineprotected |
Is Right currently pressed?
- Returns
- true if Right is currently pressed
◆ keyS()
bool bridges::game::NonBlockingGame3D::keyS |
( |
| ) |
|
|
inlineprotected |
Is S currently pressed?
- Returns
- true if S is currently pressed
◆ keySpace()
bool bridges::game::NonBlockingGame3D::keySpace |
( |
| ) |
|
|
inlineprotected |
Is Space currently pressed?
- Returns
- true if Space is currently pressed
◆ keyUp()
bool bridges::game::NonBlockingGame3D::keyUp |
( |
| ) |
|
|
inlineprotected |
Is Up currently pressed?
- Returns
- true if Up is currently pressed
◆ keyW()
bool bridges::game::NonBlockingGame3D::keyW |
( |
| ) |
|
|
inlineprotected |
Is W currently pressed?
- Returns
- true if W is currently pressed
◆ start()
void bridges::game::NonBlockingGame3D::start |
( |
| ) |
|
|
inline |
Call this function from main to start the game. Runs exactly once.
The documentation for this class was generated from the following file: