#include "panda.h"
#include "enum.h"
#include<iostream>
#include<QtGui>

Panda::Panda()
{
    int alea = rand()%2;
    if(alea==0)
    {
        sexe = MASCULIN;
    }
    else {sexe = FEMININ;}
    posX = 0 + (float)rand()/((float)RAND_MAX/(1279));
    posY = 0 + (float)rand()/((float)RAND_MAX/(679));
    champVision = 150 + rand()%35;
}

int Panda::getSexe()
{
    return sexe;
}

float Panda::getX()
{
    return posX;
}

float Panda::getY()
{
    return posY;
}
void Panda::setX(int abscisse)
{
    posX = abscisse;
}
void Panda::setY(int ordonee)
{
    posY = ordonee;
}

int Panda::getVision()
{
    return champVision;
}

int Panda::getNum()
{
    return numeroPanda;
}

void Panda::setNum(int numero)
{
    numeroPanda = numero;
}
