Commit cd24b02b authored by Benjamin Castel's avatar Benjamin Castel
Browse files

Added thrusting and setters to Spaceship

parent add171ba
Loading
Loading
Loading
Loading
+5 −0
Changes for include/model/Spaceship.hpp: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -10,10 +10,15 @@ class Spaceship : public Entity {
    private:
        glm::vec3    acceleration;
        Player       playerNumber;
        bool         thrusting;

    public:
        Spaceship(const Player &playerNumber, const glm::mat4 &modelWorld);

        const glm::vec3    &get_acceleration()  const;
        const Player       &get_player_number() const;
        const bool         &is_thrusting()      const;

        void set_acceleration(const glm::vec3 &newAcceleration);
        void set_thrusting(const bool &newThrusting);
};