Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ** EPITECH PROJECT, 2020
- ** cpp_d08_2019
- ** File description:
- ** Droid
- */
- #ifndef DROID_HPP_
- #define DROID_HPP_
- #include <iostream>
- class Droid {
- public:
- Droid(std::string id = "");
- Droid(const Droid &);
- ~Droid();
- std::string getId() const;
- size_t getEnergy() const;
- size_t getAttack() const;
- size_t getToughness() const;
- std::string *getStatus() const;
- void setId(std::string id);
- void setEnergy(size_t energy);
- void setStatus(std::string *status);
- Droid &operator<<(size_t &battery);
- Droid &operator=(Droid const &new_droid);
- bool operator!=(const Droid &d) const;
- bool operator==(const Droid &d) const;
- protected:
- private:
- std::string _id;
- size_t _energy;
- const size_t _attack = 25;
- const size_t _toughness = 15;
- std::string *_status;
- };
- std::ostream &operator<<(std::ostream &s, const Droid &d);
- #endif /* !DROID_HPP_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement