Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

plane Class Reference

#include <plane.h>

Inherits player_base.

Inheritance diagram for plane:

Inheritance graph
[legend]
Collaboration diagram for plane:

Collaboration graph
[legend]
List of all members.

Detailed Description

A flying airplane for navigating the world.

Todo:
it would be a good idea to change this class' name to "airplane" as to not confuse plane with "ground_plane" or a geometrical "plane"

Definition at line 17 of file plane.h.

Public Member Functions

 plane (camera *c)
virtual void special_func (int key, int, int)
virtual void keyboard (char c, int, int)
virtual void process_keyboard (bool[])
virtual void motion_func (int x, int y)
virtual void mouse_func (int button, int, int, int)
virtual void draw ()
void update_physics ()

Protected Attributes

cameracam
double delta_f
double delta_v
double old_speed
bool is_paused


Constructor & Destructor Documentation

plane::plane camera c  ) 
 

Definition at line 8 of file plane.cpp.

References cam, delta_f, delta_v, camera::eye, and is_paused.


Member Function Documentation

void plane::draw  )  [virtual]
 

Implements draw_object.

Definition at line 172 of file plane.cpp.

References draw_object::draw().

Here is the call graph for this function:

void plane::keyboard char  c,
int  ,
int 
[virtual]
 

Implements player_base.

Definition at line 57 of file plane.cpp.

References cam, delta_f, delta_v, camera::eye, camera::f, is_paused, mypi, old_speed, and camera::RotateView().

Here is the call graph for this function:

void plane::motion_func int  x,
int  y
[virtual]
 

Definition at line 152 of file plane.cpp.

References cam, camera::f, and camera::mouse_special().

Here is the call graph for this function:

void plane::mouse_func int  button,
int  ,
int  ,
int 
[virtual]
 

Implements player_base.

Definition at line 160 of file plane.cpp.

void plane::process_keyboard bool  []  )  [virtual]
 

Definition at line 147 of file plane.cpp.

void plane::special_func int  key,
int  ,
int 
[virtual]
 

Implements player_base.

Definition at line 33 of file plane.cpp.

References cam, camera::f, mypi, and camera::RotateView().

Here is the call graph for this function:

void plane::update_physics  )  [virtual]
 

Reimplemented from player_base.

Definition at line 246 of file plane.cpp.

References cam, camera::eye, and player_base::update_physics().

Here is the call graph for this function:


Member Data Documentation

camera* plane::cam [protected]
 

Definition at line 43 of file plane.h.

Referenced by keyboard(), motion_func(), plane(), special_func(), and update_physics().

double plane::delta_f [protected]
 

Definition at line 45 of file plane.h.

Referenced by keyboard(), and plane().

double plane::delta_v [protected]
 

Definition at line 46 of file plane.h.

Referenced by keyboard(), and plane().

bool plane::is_paused [protected]
 

whether motion is paused or not

Definition at line 52 of file plane.h.

Referenced by keyboard(), and plane().

double plane::old_speed [protected]
 

remember old speed when paused

Definition at line 49 of file plane.h.

Referenced by keyboard().


The documentation for this class was generated from the following files: