17 lines
424 B
C++
17 lines
424 B
C++
#ifndef PREDATEUR_H
|
|
#define PREDATEUR_H
|
|
#include "obstacle.h"
|
|
|
|
class Predateur : virtual public Obstacle // virtual pour au cas je créer différent type de prédateur (optimise l'utilisation mémoire)
|
|
{
|
|
public:
|
|
Predateur(point3D vitesse=point3D(1.,0,1.), double rayon= 3.0, point3D origine=point3D(30.,30.,30.));
|
|
void anime(float temps, Banc& unbanc);
|
|
|
|
|
|
private:
|
|
point3D vitesse_max;
|
|
};
|
|
|
|
#endif // PREDATEUR_H
|