50 lines
849 B
C++
50 lines
849 B
C++
//
|
|
// Created by onnig on 18/11/2021.
|
|
//
|
|
|
|
#ifndef X_BOTS_R234_H
|
|
#define X_BOTS_R234_H
|
|
#include "iostream"
|
|
#include "string"
|
|
#include "Compteur.h"
|
|
|
|
using namespace std;
|
|
|
|
class R234 {
|
|
|
|
private :
|
|
int direction;
|
|
int strength;
|
|
int speed;
|
|
int range;
|
|
const int n = 9;
|
|
|
|
public :
|
|
R234();
|
|
virtual ~R234();
|
|
R234(const R234 &r234);
|
|
|
|
R234(int direction, int strength, int speed, int range);
|
|
|
|
int getDirection() const;
|
|
void setDirection(int direction);
|
|
|
|
int getStrength() const;
|
|
void setStrength(int strength);
|
|
|
|
int getSpeed() const;
|
|
void setSpeed(int speed);
|
|
|
|
int getRange() const;
|
|
void setRange(int range);
|
|
|
|
int doAttack(int defenceEnemy);
|
|
int doProtect(int attackEnemy);
|
|
void doMove(int &x, int &y);
|
|
void doRotateLeft();
|
|
void doRotateRight();
|
|
|
|
};
|
|
|
|
|
|
#endif //X_BOTS_R234_H
|