#include <ShipCamera.h>
Inheritance diagram for Teddy::SpaceGame::ShipCamera:
Public Methods | |
ShipCamera (Ship *ship, Scene *scene, Mesh *cabin=NULL) | |
ShipCamera constructor. More... | |
virtual void | projectScene (Projection *p) |
void | front () |
Front view. More... | |
void | left () |
Left view. More... | |
void | right () |
Right view. More... | |
void | rear () |
Rear view. More... | |
void | top () |
Top view. More... | |
void | bottom () |
Bottom view. More... | |
void | setCabin (Mesh *cabin_mesh) |
Set cabin object. More... | |
void | setHeading (float heading) |
Set camera's heading. More... | |
void | setPitch (float pitch) |
Set camera's pitch. More... | |
void | setRoll (float roll) |
Set camera's roll. More... | |
void | setDistance (float distance) |
Set camera's distance to target ship. More... | |
void | setShip (Ship *target) |
Ship * | getShip () |
Scene * | getScene () |
Mesh * | getMesh () |
float | getDistance () |
Get camera's distance to target ship. More... | |
float | getHeading () |
float | getPitch () |
float | getRoll () |
virtual void | tick () |
Simulate one tick. More... | |
Protected Attributes | |
Ship * | ship |
Mesh * | cabin |
float | heading_v |
float | pitch_v |
float | roll_v |
float | range |
Definition at line 45 of file ShipCamera.h.
|
ShipCamera constructor.
Definition at line 46 of file ShipCamera.cpp. |
|
Bottom view.
Definition at line 136 of file ShipCamera.cpp. References setHeading(), setPitch(), and setRoll(). |
|
Front view.
Definition at line 91 of file ShipCamera.cpp. References setHeading(), setPitch(), and setRoll(). Referenced by ShipCamera(). |
|
Get camera's distance to target ship.
Definition at line 178 of file ShipCamera.cpp. References range. |
|
Definition at line 183 of file ShipCamera.cpp. References heading_v. |
|
Definition at line 213 of file ShipCamera.cpp. References cabin. |
|
Definition at line 188 of file ShipCamera.cpp. References pitch_v. |
|
Definition at line 193 of file ShipCamera.cpp. References roll_v. |
|
Definition at line 208 of file ShipCamera.cpp. |
|
Definition at line 203 of file ShipCamera.cpp. References ship. |
|
Left view.
Definition at line 100 of file ShipCamera.cpp. References setHeading(), setPitch(), and setRoll(). |
|
Definition at line 62 of file ShipCamera.cpp. |
|
Rear view.
Definition at line 118 of file ShipCamera.cpp. References setHeading(), setPitch(), and setRoll(). |
|
Right view.
Definition at line 109 of file ShipCamera.cpp. References setHeading(), setPitch(), and setRoll(). |
|
Set cabin object.
Definition at line 148 of file ShipCamera.cpp. References cabin. |
|
Set camera's distance to target ship.
Definition at line 154 of file ShipCamera.cpp. References range. |
|
Set camera's heading.
Definition at line 160 of file ShipCamera.cpp. References heading_v. Referenced by bottom(), front(), left(), rear(), right(), and top(). |
|
Set camera's pitch.
Definition at line 166 of file ShipCamera.cpp. References pitch_v. Referenced by bottom(), front(), left(), rear(), right(), and top(). |
|
Set camera's roll.
Definition at line 172 of file ShipCamera.cpp. References roll_v. Referenced by bottom(), front(), left(), rear(), right(), and top(). |
|
Definition at line 198 of file ShipCamera.cpp. References ship. |
|
Simulate one tick.
Reimplemented from Teddy::SpaceGame::Simulated. Definition at line 77 of file ShipCamera.cpp. |
|
Top view.
Definition at line 127 of file ShipCamera.cpp. References setHeading(), setPitch(), and setRoll(). |
|
Definition at line 76 of file ShipCamera.h. Referenced by getMesh(), setCabin(), and ShipCamera(). |
|
Definition at line 77 of file ShipCamera.h. Referenced by getHeading(), setHeading(), and tick(). |
|
Definition at line 78 of file ShipCamera.h. |
|
Definition at line 80 of file ShipCamera.h. Referenced by getDistance(), projectScene(), setDistance(), ShipCamera(), and tick(). |
|
Definition at line 79 of file ShipCamera.h. |
|
Definition at line 75 of file ShipCamera.h. Referenced by getShip(), projectScene(), setShip(), ShipCamera(), and tick(). |