La powerball ja no mata
La powerball no pillava la rotació si es creava amb el rellotge actiu
This commit is contained in:
@@ -174,25 +174,26 @@ public:
|
||||
void useNormalColor();
|
||||
|
||||
// Getters
|
||||
float getPosX() const;
|
||||
float getPosY() const;
|
||||
int getWidth() const;
|
||||
int getHeight() const;
|
||||
BalloonSize getSize() const;
|
||||
BalloonType getType() const;
|
||||
Uint16 getScore() const;
|
||||
Circle &getCollider();
|
||||
Uint8 getMenace() const;
|
||||
Uint8 getPower() const;
|
||||
bool isStopped() const;
|
||||
bool isInvulnerable() const;
|
||||
bool isBeingCreated() const;
|
||||
bool isEnabled() const;
|
||||
bool isUsingReversedColor();
|
||||
bool canBePopped() const;
|
||||
float getPosX() const { return x_; }
|
||||
float getPosY() const { return y_; }
|
||||
int getWidth() const { return w_; }
|
||||
int getHeight() const { return h_; }
|
||||
BalloonSize getSize() const { return size_; }
|
||||
BalloonType getType() const { return type_; }
|
||||
Uint16 getScore() const { return score_; }
|
||||
Circle &getCollider() { return collider_; }
|
||||
Uint8 getMenace() const { return isEnabled() ? menace_ : 0; }
|
||||
Uint8 getPower() const { return power_; }
|
||||
bool isStopped() const { return stopped_; }
|
||||
bool isPowerBall() const { return type_ == BalloonType::POWERBALL; }
|
||||
bool isInvulnerable() const { return invulnerable_; }
|
||||
bool isBeingCreated() const { return being_created_; }
|
||||
bool isEnabled() const { return enabled_; }
|
||||
bool isUsingReversedColor() { return use_reversed_colors_; }
|
||||
bool canBePopped() const { return !isBeingCreated(); }
|
||||
|
||||
// Setters
|
||||
void setVelY(float vel_y);
|
||||
void setSpeed(float speed);
|
||||
void setInvulnerable(bool value);
|
||||
void setVelY(float vel_y) { vy_ = vel_y; }
|
||||
void setSpeed(float speed) { speed_ = speed; }
|
||||
void setInvulnerable(bool value) { invulnerable_ = value; }
|
||||
};
|
||||
Reference in New Issue
Block a user