Test/LAB3_BRULEZ_HUGUET_SERRE/X-BOTS/W000Adapter.h
2022-03-03 15:44:04 +01:00

39 lines
656 B
C++

//
// Created by jser on 09/12/2021.
//
#ifndef X_BOT2_W000ADAPTER_H
#define X_BOT2_W000ADAPTER_H
#include "XBOT.h"
#include "W000.h"
class W000Adapter : public XBOT{
private :
W000 *w000;
int pdv;
public :
W000Adapter();
W000Adapter(const W000Adapter &w000adapter);
virtual ~W000Adapter();
W000Adapter(W000* w000);
void bouger(int xAmi, int yAmi, int &x, int &y, int xEnnemi, int yEnnemi );
int attaquer(int x, int y, int xEnnemi, int yEnnemi);
void defendre(int degat);
bool estFonctionnel();
string toStringg();
int getPdv() const;
void setPdv(int pdv);
};
#endif //X_BOT2_W000ADAPTER_H