private:
typedef std::list<BadGuy*> BadGuys;
BadGuys bad_guys_to_add;
+ typedef std::list<Trampoline*> Trampolines;
+ Trampolines trampolines;
Level* level;
Player tux;
std::vector<FloatingScore*> floating_scores;
std::vector<Upgrade> upgrades;
- Timer bullets_timer;
std::vector<Bullet> bullets;
typedef std::vector<ParticleSystem*> ParticleSystems;
ParticleSystems particle_systems;
void activate_particle_systems();
void activate_bad_guys();
+ void activate_objects();
void add_score(float x, float y, int s);
void add_bouncy_distro(float x, float y);
void add_bouncy_brick(float x, float y);
BadGuy* add_bad_guy(float x, float y, BadGuyKind kind, bool stay_on_platform = false);
+ template <class T, class U> T* add_object(U data);
void add_upgrade(float x, float y, Direction dir, UpgradeKind kind);
void add_bullet(float x, float y, float xm, Direction dir);
void trygrabdistro(float x, float y, int bounciness);
/** Try to break the brick at the given coordinates */
- void trybreakbrick(float x, float y, bool small);
+ bool trybreakbrick(float x, float y, bool small);
/** Try to get the content out of a bonus box, thus emptying it */
void tryemptybox(float x, float y, Direction col_side);