55 lines
937 B
C++
55 lines
937 B
C++
//
|
|
// Created by onnig on 18/11/2021.
|
|
//
|
|
|
|
#ifndef X_BOTS_X213_H
|
|
#define X_BOTS_X213_H
|
|
#include "iostream"
|
|
#include "string"
|
|
#include "Compteur.h"
|
|
|
|
using namespace std;
|
|
|
|
class X213 {
|
|
|
|
private :
|
|
string nom;
|
|
int direction;
|
|
int force;
|
|
int vitesse;
|
|
int vision;
|
|
const int n = 9;
|
|
|
|
|
|
public :
|
|
X213();
|
|
virtual ~X213();
|
|
X213(const X213 &x213);
|
|
X213(string nom);
|
|
|
|
X213(string nom, int direction, int force, int vitesse, int vision);
|
|
|
|
const string &getNom() const;
|
|
void setNom(const string &nom);
|
|
|
|
int getDirection() const;
|
|
void setDirection(int direction);
|
|
|
|
int getForce() const;
|
|
void setForce(int force);
|
|
|
|
int getVitesse() const;
|
|
void setVitesse(int vitesse);
|
|
|
|
int getVision() const;
|
|
void setVision(int vision);
|
|
|
|
int bloquer();
|
|
void mouvement(int &x, int &y);
|
|
void superCourse(int &x, int &y);
|
|
void tournerLesTalons();
|
|
|
|
};
|
|
|
|
|
|
#endif //X_BOTS_X213_H
|