double Move::perform(double &probRatio) { // increment the counter for tried numTried++; // delegate the call to the derived class return performMove(probRatio); }
void SpaceZombie::update(float delta) { switch(m_state1) { case en_ZombieMoving: performMove(delta); break; case en_ZombieAttacking: performAttacking(delta); break; case en_ZombieDead: //CCLOG("Zombie Dead"); break; case en_ZombieStopped: //CCLOG("Zombie Stoped"); break; case en_ZombieFlyAway: performFlyAway(delta); break; default: break; } }