Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Airport Class Reference

#include <airport.h>

List of all members.

Public Methods

 Airport ()
 ~Airport ()
void Animate ()
void Center (double &x, double &y, double &z)
void GetNearestPoint (float planeX, float planeY, float &coordX, float &coordY, float &runwayDirX, float &runwayDirY, string runwayHandle)
void GetNearestPoint (float planeX, float planeY, float &coordX, float &coordY, float &runwayDirX, float &runwayDirY)
string GetNearestRunway (float xPos, float yPos)
const int GetNumRunways ()
const int GetNumPlanesQueued (string runwayHandle)
bool IsPlaneQueued (string planeHandle, string runwayHandle)
bool LoadAirport (char *name)
bool Render ()
RunwayResponse ReserveRunway (string planeHandle, string runwayHandle)
RunwayResponse ReserveRunway (string planeHandle, float xPos, float yPos)
void SetScale (double newScale)
void SetWaterSpeed (float xSpeed, float ySpeed)
void UnreserveRunway (string planeHandle, string runwayHandle)
void UnreserveRunway (string planeHandle)


Detailed Description

The airport class is used to store one airport's information. This includes: position of control tower, position of terminal, position of runwas, how to render all said objects, where the airport is, where the water is...


Constructor & Destructor Documentation

Airport::Airport  
 

Contructor does almost nothing. LoadAirport is used instead so it can return a value if something goes wrong.

Airport::~Airport  
 

Destructor


Member Function Documentation

void Airport::Animate  
 

Updates all information needed to be updated each frame

void Airport::Center double &    x,
double &    y,
double &    z
 

Changes the x, y, and z parameters to the rough center of the airport

void Airport::GetNearestPoint float    planeX,
float    planeY,
float &    coordX,
float &    coordY,
float &    runwayDirX,
float &    runwayDirY
 

void Airport::GetNearestPoint float    planeX,
float    planeY,
float &    coordX,
float &    coordY,
float &    runwayDirX,
float &    runwayDirY,
string    runwayHandle
 

Gets the nearest point on the runway that the plane can land on as well as the vectored direction of the runway

string Airport::GetNearestRunway float    xPos,
float    yPos
 

Returns the handle of the nearest runway given an x and y position

const int Airport::GetNumPlanesQueued string    runwayHandle
 

Returns the number of planes on a given runway

const int Airport::GetNumRunways  
 

Returns the number of runways

bool Airport::IsPlaneQueued string    planeHandle,
string    runwayHandle
 

Checks if a plane is queued on a given runway

bool Airport::LoadAirport char *    name
 

Loads all object placement and models, water, textures, and display lists.

bool Airport::Render  
 

Render the tower, terminals, and runways

RunwayResponse Airport::ReserveRunway string    planeHandle,
float    xPos,
float    yPos
 

RunwayResponse Airport::ReserveRunway string    planeHandle,
string    runwayHandle
 

Reserves a runway for an airplane

void Airport::SetScale double    newScale
 

Used to set the relative size of the airport

void Airport::SetWaterSpeed float    xSpeed,
float    ySpeed
 

Used to set the speed of the water. Recommended numbers are around 0.001 or less. This number will give you the rate at which the water moves per call to Airport::Animate() in meters / frame.

void Airport::UnreserveRunway string    planeHandle
 

void Airport::UnreserveRunway string    planeHandle,
string    runwayHandle
 

If a plane wants to, release its binding to a runway


The documentation for this class was generated from the following files:
Generated on Sun Jun 16 17:36:44 2002 for Anirudh's Vortex-Wake Simulation Code by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001