示例#1
0
void Human::Analyze() 
{
 this->setState(Analyzing);
 RandomG mind;
 this->power=mind.RandomNumber();
}
示例#2
0
void Animal::Eat() {
    RandomG food;
    this->weight += food.RandomNumber();
    this->setState(Eating);
 }
示例#3
0
void Animal::SearchingForFood(){
    RandomG food;
    this->power -= food.RandomNumber();
    this->setState(SearchingForFood);     
 }  
示例#4
0
void Animal::Sleep()
{
     RandomG food;
     this->energy += food.RandomNumber();
     this->setState(Sleeping);     
 }