Wing 323 - Gamepad Version  V1.0
Public Member Functions
Door Class Reference

Creates and manages a door within the game. Each door requires a pre-defined keycard to allow the player to pass through it. More...

List of all members.

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.

Detailed Description

Creates and manages a door within the game. Each door requires a pre-defined keycard to allow the player to pass through it.

Author:
Alexander Poolton
Version:
3.0
Date:
21/7/2011

Member Function Documentation

bool Door::getIsAccessGranted ( ) [inline]

Get if access is granted or denied.

Returns:
m_isAccessGranted Returns if access. is granted or not.
void Door::setIsDoorOpening ( bool  _isAccessGranted) [inline]

Set if the door is opening or not (based on if access is granted or not).

Parameters:
[in]_isAccessGrantedIs access granted or denied.

The documentation for this class was generated from the following file:
 All Classes Functions