Wing 323 - Gamepad Version
V1.0
|
Creates and manages a door within the game. Each door requires a pre-defined keycard to allow the player to pass through it. More...
Public Member Functions | |
void | Start () |
Initialises the door's attributes. | |
void | Update () |
The door's update loop check to see if the player is granted access to the door. | |
void | openDoor () |
Opens the door by lerping it's position downward (i.e. the door slides downward). | |
void | setIsDoorOpening (bool _isAccessGranted) |
Set if the door is opening or not (based on if access is granted or not). | |
string | getKeycardRequired () |
Get the keycard required to open the door. | |
bool | getIsAccessGranted () |
Get if access is granted or denied. |
Creates and manages a door within the game. Each door requires a pre-defined keycard to allow the player to pass through it.
bool Door::getIsAccessGranted | ( | ) | [inline] |
Get if access is granted or denied.
void Door::setIsDoorOpening | ( | bool | _isAccessGranted | ) | [inline] |
Set if the door is opening or not (based on if access is granted or not).
[in] | _isAccessGranted | Is access granted or denied. |