//------------------------- AddRailGunSlug ----------------------------------- void Raven_Game::AddRailGunSlug(Raven_Bot* shooter, Vector2D target) { Raven_Projectile* rp = new Slug(shooter, target); m_Projectiles.push_back(rp); #ifdef LOG_CREATIONAL_STUFF debug_con << "Adding a rail gun slug" << rp->ID() << " at pos " << rp->Pos() << ""; #endif }
//------------------------- AddShotGunPellet ----------------------------------- void Raven_Game::AddShotGunPellet(Raven_Bot* shooter, Vector2D target) { Raven_Projectile* rp = new Pellet(shooter, target); m_Projectiles.push_back(rp); #ifdef LOG_CREATIONAL_STUFF debug_con << "Adding a shotgun shell " << rp->ID() << " at pos " << rp->Pos() << ""; #endif }
//------------------------------ AddRocket -------------------------------- void Raven_Game::AddRocket(AbstRaven_Bot* shooter, Vector2D target) { Raven_Projectile* rp = new Rocket(shooter, target); m_Projectiles.push_back(rp); #ifdef LOG_CREATIONAL_STUFF debug_con << "Adding a rocket " << rp->ID() << " at pos " << rp->Pos() << ""; #endif }