Sector* Sector::_current = 0;
Sector::Sector()
- : gravity(10), player(0), solids(0), background(0), camera(0),
- currentmusic(LEVEL_MUSIC), end_sequence_animation_type(NONE_ENDSEQ_ANIM)
+ : end_sequence_animation_type(NONE_ENDSEQ_ANIM),
+ gravity(10), player(0), solids(0), background(0), camera(0),
+ currentmusic(LEVEL_MUSIC)
{
song_title = "Mortimers_chipdisko.mod";
player = new Player();
{
global_stats.add_points(SCORE_STAT, s);
- add_object(new FloatingScore(pos, s));
+ add_object(new FloatingText(pos, s));
}
void
}
BadGuy*
-Sector::add_bad_guy(float x, float y, BadGuyKind kind)
+Sector::add_bad_guy(float x, float y, BadGuyKind kind, bool activate)
{
BadGuy* badguy = new BadGuy(kind, x, y);
add_object(badguy);
+ if(activate)
+ badguy->activate(LEFT);
return badguy;
}
return true;
}
+void
+Sector::add_floating_text(const Vector& pos, const std::string& text)
+{
+ add_object(new FloatingText(pos, text));
+}
+
/* Break a brick: */
bool
Sector::trybreakbrick(const Vector& pos, bool small)