#include "view.h"#include <opie2/oresource.h>#include <qpe/qpeapplication.h>#include <stdlib.h>#include <math.h>Include dependency graph for view.cpp:

Go to the source code of this file.
Defines | |
| #define | IMG_BACKGROUND "qasteroids/bg" |
| #define | REFRESH_DELAY 33 |
| #define | SHIP_SPEED 0.3 |
| #define | MISSILE_SPEED 10.0 |
| #define | SHIP_STEPS 64 |
| #define | ROTATE_RATE 2 |
| #define | SHIELD_ON_COST 1 |
| #define | SHIELD_HIT_COST 30 |
| #define | BRAKE_ON_COST 4 |
| #define | MAX_ROCK_SPEED 2.5 |
| #define | MAX_POWERUP_SPEED 1.5 |
| #define | MAX_SHIP_SPEED 8 |
| #define | MAX_BRAKES 5 |
| #define | MAX_SHIELDS 5 |
| #define | MAX_FIREPOWER 5 |
| #define | TEXT_SPEED 4 |
| #define | PI_X_2 6.283185307 |
| #define | M_PI 3.141592654 |
Variables | |
| static const kas_animations_t | kas_animations [] |
|
|
Definition at line 42 of file view.cpp. Referenced by KAsteroidsView::processShip(). |
|
|
Definition at line 33 of file view.cpp. Referenced by KAsteroidsView::KAsteroidsView(). |
|
|
|
|
|
Definition at line 47 of file view.cpp. Referenced by KAsteroidsView::processPowerups(). |
|
|
Definition at line 49 of file view.cpp. Referenced by KAsteroidsView::processPowerups(). |
|
|
|
|
|
Definition at line 44 of file view.cpp. Referenced by KAsteroidsView::rockHit(). |
|
|
Definition at line 48 of file view.cpp. Referenced by KAsteroidsView::processPowerups(). |
|
|
Definition at line 46 of file view.cpp. Referenced by KAsteroidsView::processShip(). |
|
|
Definition at line 37 of file view.cpp. Referenced by KAsteroidsView::processShip(). |
|
|
Definition at line 53 of file view.cpp. Referenced by KAsteroidsView::processShip(). |
|
|
Definition at line 35 of file view.cpp. Referenced by KAsteroidsView::KAsteroidsView(), KAsteroidsView::newGame(), and KAsteroidsView::pause(). |
|
|
Definition at line 39 of file view.cpp. Referenced by KAsteroidsView::brake(), KAsteroidsView::newShip(), and KAsteroidsView::processShip(). |
|
|
Definition at line 41 of file view.cpp. Referenced by KAsteroidsView::processShip(). |
|
|
Definition at line 40 of file view.cpp. Referenced by KAsteroidsView::processShip(). |
|
|
|
|
|
Definition at line 38 of file view.cpp. Referenced by KAsteroidsView::processShip(). |
|
|
Definition at line 51 of file view.cpp. Referenced by KAsteroidsView::hideText(), and KAsteroidsView::showText(). |
|
|
Initial value:
{
{ ID_ROCK_MEDIUM, "rock2/rock2\%1.png", 32 },
{ ID_ROCK_SMALL, "rock3/rock3\%1.png", 32 },
{ ID_SHIP, "ship/ship\%1.png", 32 },
{ ID_MISSILE, "missile/missile.png", 0 },
{ ID_BIT, "bits/bits\%1.png", 16 },
{ ID_EXHAUST, "exhaust/exhaust.png", 0 },
{ ID_ENERGY_POWERUP, "powerups/energy.png", 0 },
{ ID_BRAKE_POWERUP, "powerups/brake.png", 0 },
{ ID_SHIELD_POWERUP, "powerups/shield.png", 0 },
{ ID_SHOOT_POWERUP, "powerups/shoot.png", 0 },
{ ID_SHIELD, "shield/shield\%1.png", 6 },
{ 0, 0, 0 }
}
|
1.4.2