Tinman
1.0
|
#include <powerup.h>
Public Types | |
enum | Type { Type::Nitro, Type::MoneyBag } |
typedef float | seconds |
typedef btVector3 | Position |
typedef std::pair< Position, seconds > | Location |
typedef std::shared_ptr< PowerUp > | shared |
Public Member Functions | |
PowerUp (Scene::shared scene, Physics::shared physics, Animation::shared animation) | |
virtual | ~PowerUp () |
void | realize (Type object) |
void | update (float delta) |
void | pick_up () |
void | reset () |
void | active_animation (std::string animation_name) |
Public Attributes | |
btRigidBody * | body_ |
Private Member Functions | |
void | read_locations (std::string file) |
void | replace (btVector3 new_position) |
void | add_to_scene () |
void | remove_from_scene () |
Private Attributes | |
std::string | file_ |
Animation::shared | animation_ |
Scene::shared | scene_ |
Physics::shared | physics_ |
Ogre::SceneNode * | node_ |
Ogre::Entity * | entity_ |
btCollisionShape * | shape_ |
std::vector< Location > | locations_ |
Location | last_location_ |
float | start_ |
bool | removed_ |
typedef std::pair<Position, seconds> PowerUp::Location |
typedef btVector3 PowerUp::Position |
typedef float PowerUp::seconds |
typedef std::shared_ptr<PowerUp> PowerUp::shared |
|
strong |
PowerUp::PowerUp | ( | Scene::shared | scene, |
Physics::shared | physics, | ||
Animation::shared | animation | ||
) |
|
virtual |
void PowerUp::active_animation | ( | std::string | animation_name | ) |
|
private |
void PowerUp::pick_up | ( | ) |
|
private |
void PowerUp::realize | ( | PowerUp::Type | object | ) |
|
private |
|
private |
void PowerUp::reset | ( | ) |
void PowerUp::update | ( | float | delta | ) |
|
private |
btRigidBody* PowerUp::body_ |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |