4 #define _USE_MATH_DEFINES 10 #include "coordonnee.h" 38 Arbre(
int col,
int row,
const Essence*
const _essence,
unsigned int _age = 0,
unsigned int _humidite = 20,
int _coefficient = 1);
45 Arbre(
Cellule* cell,
int col,
int row,
const Essence*
const _essence,
unsigned int age = 0,
unsigned int _humidite = 20,
int _coefficient = 1);
51 Arbre(
int col,
int row,
Cellule* cell,
const Essence*
const _essence,
unsigned int _humidite,
int _hp,
int _coefficient = 1);
63 virtual int getState()
const {
return state; };
64 int getPv()
const {
return hp;};
65 float getCoeff()
const {
return coefficient; };
66 float getHumidity()
const {
return humidity; };
67 const Coordonnee& getPos()
const {
return pos; };
68 const Essence* getEssence()
const {
return essence; };
71 void setCoefficient(
float x);
79 void spark (
float coefTransmission = 1.0);
85 bool burn (
float coefBrulure = 1.0);
88 virtual bool isOnFire()
const {
return state==2; };
93 void delay(
float coefRalentissement);
94 void kindle() { state= 2; };
95 void blast() { state= -1; };
96 void uproot() { state= -2; };
void delay(float coefRalentissement)
Definition: arbre.cpp:94
void initialise(unsigned age)
Definition: arbre.cpp:39
bool burn(float coefBrulure=1.0)
Definition: arbre.cpp:128
void spark(float coefTransmission=1.0)
Definition: arbre.cpp:103
Arbre(int col, int row, const Essence *const _essence, unsigned int _age=0, unsigned int _humidite=20, int _coefficient=1)
Normalement inutile, permet de ne pas utilise -lm lors compilation
Definition: coordonnee.h:10