Exemplo n.º 1
0
Arquivo: spark.c Projeto: quag/spark
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;
}
Exemplo n.º 2
0
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 );
}
Exemplo n.º 3
0
extern "C" void
ekiga_plugin_init (Ekiga::KickStart& kickstart)
{
  boost::shared_ptr<Ekiga::Spark> spark(new XCAPSpark);
  kickstart.add_spark (spark);
}
Exemplo n.º 4
0
void
audioinput_null_init (Ekiga::KickStart& kickstart)
{
  boost::shared_ptr<Ekiga::Spark> spark(new NULLAUDIOINPUTSpark);
  kickstart.add_spark (spark);
}
Exemplo n.º 5
0
void
videoinput_ptlib_init (Ekiga::KickStart& kickstart)
{
  boost::shared_ptr<Ekiga::Spark> spark(new PTLIBVIDEOINPUTSpark);
  kickstart.add_spark (spark);
}
Exemplo n.º 6
0
void
hal_dbus_init (Ekiga::KickStart& kickstart)
{
  gmref_ptr<Ekiga::Spark> spark(new HALDBUSSpark);
  kickstart.add_spark (spark);
}
Exemplo n.º 7
0
void
local_roster_bridge_init (Ekiga::KickStart& kickstart)
{
  boost::shared_ptr<Ekiga::Spark> spark(new LOCALROSTERBRIDGESpark);
  kickstart.add_spark (spark);
}
Exemplo n.º 8
0
void
audiooutput_ptlib_init (Ekiga::KickStart& kickstart)
{
  boost::shared_ptr<Ekiga::Spark> spark(new PTLIBAUDIOOUTPUTSpark);
  kickstart.add_spark (spark);
}
Exemplo n.º 9
0
void
history_init (Ekiga::KickStart& kickstart)
{
  boost::shared_ptr<Ekiga::Spark> spark(new HISTORYSpark);
  kickstart.add_spark (spark);
}
Exemplo n.º 10
0
void
hal_gudev_init (Ekiga::KickStart& kickstart)
{
  boost::shared_ptr<Ekiga::Spark> spark(new GUDevSpark);
  kickstart.add_spark (spark);
}
Exemplo n.º 11
0
void
history_init (Ekiga::KickStart& kickstart)
{
  gmref_ptr<Ekiga::Spark> spark(new HISTORYSpark);
  kickstart.add_spark (spark);
}