int main(int argc, char **argv) { if (argc >= 2) { spark(argv[1]); return EXIT_SUCCESS; } else if (!isatty(fileno(stdin))) { int bufcap = 4096; char *buf = calloc(bufcap, sizeof(*buf)); if (fgets(buf, bufcap, stdin) != NULL) { spark(buf); return EXIT_SUCCESS; } } return EXIT_FAILURE; }
KDvoid Enemy::destroy ( KDvoid ) { CCNode* pParent = this->getParent ( ); const CCPoint& tPoint = this->getPosition ( ); if ( !m_bActive ) { Global::nScore += m_nScoreValue; Global::playEffect ( PATH_SOUND_EXPLODE ); Explosion* pExplosion = Explosion::create ( ); pExplosion->setPosition ( tPoint ); pParent->addChild ( pExplosion ); spark ( tPoint, pParent, 1.2f, 0.7f ); } Global::pEnemyContainer->removeObject ( this ); pParent->removeChild ( this, KD_TRUE ); }
extern "C" void ekiga_plugin_init (Ekiga::KickStart& kickstart) { boost::shared_ptr<Ekiga::Spark> spark(new XCAPSpark); kickstart.add_spark (spark); }
void audioinput_null_init (Ekiga::KickStart& kickstart) { boost::shared_ptr<Ekiga::Spark> spark(new NULLAUDIOINPUTSpark); kickstart.add_spark (spark); }
void videoinput_ptlib_init (Ekiga::KickStart& kickstart) { boost::shared_ptr<Ekiga::Spark> spark(new PTLIBVIDEOINPUTSpark); kickstart.add_spark (spark); }
void hal_dbus_init (Ekiga::KickStart& kickstart) { gmref_ptr<Ekiga::Spark> spark(new HALDBUSSpark); kickstart.add_spark (spark); }
void local_roster_bridge_init (Ekiga::KickStart& kickstart) { boost::shared_ptr<Ekiga::Spark> spark(new LOCALROSTERBRIDGESpark); kickstart.add_spark (spark); }
void audiooutput_ptlib_init (Ekiga::KickStart& kickstart) { boost::shared_ptr<Ekiga::Spark> spark(new PTLIBAUDIOOUTPUTSpark); kickstart.add_spark (spark); }
void history_init (Ekiga::KickStart& kickstart) { boost::shared_ptr<Ekiga::Spark> spark(new HISTORYSpark); kickstart.add_spark (spark); }
void hal_gudev_init (Ekiga::KickStart& kickstart) { boost::shared_ptr<Ekiga::Spark> spark(new GUDevSpark); kickstart.add_spark (spark); }
void history_init (Ekiga::KickStart& kickstart) { gmref_ptr<Ekiga::Spark> spark(new HISTORYSpark); kickstart.add_spark (spark); }