Ejemplo n.º 1
0
//no utilizada
CZombie& CZombie::operator = (CZombie& z)
{
  SetHealth(z.GetHealth());
  SetInstance(z.GetInstance());
  SetModelFilename(z.GetModelFilename());
  SetMoveSpeed(z.GetMoveSpeed());
  SetRotSpeed(z.GetRotSpeed());
  GetInstance()->SetScalar(z.GetInstance()->GetScalarX(),z.GetInstance()->GetScalarX(),z.GetInstance()->GetScalarX());
  SetRadiusSmelling(z.GetRadiusSmelling());
  SetRadiuwViewing(z.GetRadiusViewing());
  GetInstance()->SetName(z.GetInstance()->GetName());
  SetEjeMovimientoIA(z.GetEjeMovimientoIA());

  return *this;
}
bool CZombieOlfateador::Init(CZombie &z)
{
	bool bIsOk = Inherited::Init(z);
  if (!bIsOk)
  {
		printf("a CZombieOlfateador instace couldnt allocate memory");
    Done();								//We call Done()  to release before the parent class
	}
  else
  {
    SetHealth(z.GetHealth());
    SetInstance(z.GetInstance());
    SetModelFilename(z.GetModelFilename());
    SetMoveSpeed(z.GetMoveSpeed());
    SetRotSpeed(z.GetRotSpeed());
    GetInstance()->SetScalar(z.GetInstance()->GetScalarX(),z.GetInstance()->GetScalarY(),z.GetInstance()->GetScalarZ());
    SetSiguiendoRuta(false);
  }

  return bIsOk;
}
Ejemplo n.º 3
0
C_ROULETTE::C_ROULETTE()
{
	SetRotSpeed(2);
}