#include <FrontCamera.h>
Collaboration diagram for Teddy::SpaceGame::FrontCamera:

Public Methods | |
| FrontCamera (const char *name, Camera *camera, Root *root, LayoutConstraint *lc, bool frame) | |
| Constructor. More... | |
| virtual | ~FrontCamera () |
| Destructor. More... | |
| virtual void | drawSelf () |
| virtual void | focusActive (const bool active) |
| Received or lost focus. More... | |
| virtual void | mouseKey (const int button, const int state, const int x, const int y) |
| MouseListener interface. More... | |
| virtual void | mouseMotion (const int x, const int y, const int dx, const int dy) |
| virtual Area * | getTarget (const Event e) const |
| Return event target. More... | |
| virtual void | keyDown (const SDL_keysym key) |
| KeyListener interface implementation. More... | |
| virtual void | keyUp (const SDL_keysym key) |
Protected Attributes | |
| Root * | root |
| WindowFrame * | window_frame |
| PlayerShip * | player_ship |
| Label * | title |
| int | mouse_drag_x [4] |
| int | mouse_drag_y [4] |
| int | mouse_click_x [4] |
| int | mouse_click_y [4] |
| int | mouse_b [4] |
Static Protected Attributes | |
| bool | keys [SDLK_LAST+1] |
Definition at line 57 of file FrontCamera.h.
|
||||||||||||||||||||||||
|
Constructor.
Definition at line 49 of file FrontCamera.cpp. References keys, mouse_click_x, mouse_click_y, mouse_drag_x, mouse_drag_y, player_ship, root, title, and window_frame. |
|
|
Destructor.
Definition at line 109 of file FrontCamera.cpp. |
|
|
Definition at line 94 of file FrontCamera.cpp. References title. |
|
|
Received or lost focus.
Definition at line 115 of file FrontCamera.cpp. References root, and window_frame. |
|
|
Return event target.
Definition at line 103 of file FrontCamera.cpp. References window_frame. |
|
|
KeyListener interface implementation.
Definition at line 159 of file FrontCamera.cpp. References keys, player_ship, and root. |
|
|
Definition at line 298 of file FrontCamera.cpp. References keys, and player_ship. |
|
||||||||||||||||||||
|
MouseListener interface.
Definition at line 130 of file FrontCamera.cpp. References mouse_b, mouse_click_x, mouse_click_y, mouse_drag_x, mouse_drag_y, and root. |
|
||||||||||||||||||||
|
Definition at line 149 of file FrontCamera.cpp. |
|
|
Definition at line 45 of file FrontCamera.cpp. Referenced by FrontCamera(), keyDown(), and keyUp(). |
|
|
Definition at line 86 of file FrontCamera.h. Referenced by mouseKey(), and mouseMotion(). |
|
|
Definition at line 84 of file FrontCamera.h. Referenced by FrontCamera(), and mouseKey(). |
|
|
Definition at line 85 of file FrontCamera.h. Referenced by FrontCamera(), and mouseKey(). |
|
|
Definition at line 82 of file FrontCamera.h. Referenced by FrontCamera(), and mouseKey(). |
|
|
Definition at line 83 of file FrontCamera.h. Referenced by FrontCamera(), and mouseKey(). |
|
|
Definition at line 80 of file FrontCamera.h. Referenced by FrontCamera(), keyDown(), and keyUp(). |
|
|
Definition at line 78 of file FrontCamera.h. Referenced by focusActive(), FrontCamera(), keyDown(), mouseKey(), and mouseMotion(). |
|
|
Definition at line 81 of file FrontCamera.h. Referenced by drawSelf(), and FrontCamera(). |
|
|
Definition at line 79 of file FrontCamera.h. Referenced by focusActive(), FrontCamera(), and getTarget(). |