1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
class Icone: public Dessin
{
private:
// SDL_Surface* iconeSurface;
std::string commande;
std::string pathIcone;
public:
Icone(SDL_Surface*, int, int, int, int, int, std::string, std::string);
~Icone();
inline const std::string getCommande(){return commande;}
const char* getPathIcone();
void dessinIcone();
};
Icone::Icone(SDL_Surface* _affichage, int _r, int _g, int _b, int _x, int _y, std::string _commande, std::string _pathIcone)
:Dessin(affichage, r, g, b, x, y), commande(_commande), pathIcone(_pathIcone)
{
affichage=_affichage;
x=_x;
y=_y;
commande = _commande;
} |
Partager