Mario: teleport to hardcoded level
This commit is contained in:
@@ -21,6 +21,9 @@ public:
|
||||
bool isDead() const {
|
||||
return _death;
|
||||
}
|
||||
bool isInstantDead() const {
|
||||
return _instant_death;
|
||||
}
|
||||
bool isStopped() const {
|
||||
return stop;
|
||||
}
|
||||
@@ -124,6 +127,15 @@ public:
|
||||
bool hasStar() const {
|
||||
return _has_star;
|
||||
}
|
||||
bool hasTeleport() const {
|
||||
return !teleport_level.empty();
|
||||
}
|
||||
const std::string &getTeleportLevel() const {
|
||||
return teleport_level;
|
||||
}
|
||||
void setTeleportLevel(const std::string &level) {
|
||||
teleport_level = level;
|
||||
}
|
||||
|
||||
private:
|
||||
bool onGround = false;
|
||||
@@ -151,6 +163,8 @@ private:
|
||||
bool _is_big = false;
|
||||
bool _has_star = false;
|
||||
bool _death = false;
|
||||
bool _instant_death = false;
|
||||
std::string teleport_level = "";
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user