#include #include #include #include "position.h" #ifndef bateau_h #define bateau_h class Bateau { private: char* nom; int nbcase; int touche; char *type; char direction; Position p; public: // ===== Constructeur(s) & Destructeurs ===== Bateau(); Bateau(char*,int); Bateau(char* name,char *t,int nbrecase); Bateau(char* name,int nbrecase,char direction, Position p,char* t); ~Bateau(); // ===== Accesseurs ===== void setType(char*); char* getType(); void setNom(char*); char* getNom() ; void setNbcase(int); int getNbcase() ; void setDirection(char); char getDirection() ; int getLigne(); void setLigne(int); void setColonne(int); int getColonne(); void setTouche(int); int getTouche(); Position getPosition(); void setPosition(int,int); // ===== autres ===== void touche_bateau(); bool coule_bateau(); int transformation(char); void saisie(); }; #endif