afegida progresió

This commit is contained in:
2025-12-03 22:19:44 +01:00
parent a3aeed4b7c
commit 1023cde1be
14 changed files with 1109 additions and 58 deletions

View File

@@ -52,6 +52,16 @@ class Enemic {
// Set ship position reference for tracking behavior
void set_ship_position(const Punt* ship_pos) { ship_position_ = ship_pos; }
// [NEW] Getters for stage system (base stats)
float get_base_velocity() const;
float get_base_rotation() const;
TipusEnemic get_tipus() const { return tipus_; }
// [NEW] Setters for difficulty multipliers (stage system)
void set_velocity(float vel) { velocitat_ = vel; }
void set_rotation(float rot) { drotacio_ = rot; animacio_.drotacio_base = rot; }
void set_tracking_strength(float strength);
private:
SDL_Renderer* renderer_;
@@ -76,6 +86,7 @@ class Enemic {
// [NEW] Behavior state (type-specific)
float tracking_timer_; // For Quadrat: time since last angle update
const Punt* ship_position_; // Pointer to ship position (for tracking)
float tracking_strength_; // For Quadrat: tracking intensity (0.0-1.5), default 0.5
// [EXISTING] Private methods
void mou(float delta_time);