Exemplo n.º 1
0
PlanetOpt::PlanetOpt(RasterAnimHost *RAHost, EffectsLib *Library, PlanetOpt *Proto)
: GeneralEffect(RAHost)
{
char NameBase[WCS_EFFECT_MAXNAMELENGTH];

EffectType = WCS_JOE_ATTRIB_INTERNAL_PLANETOPT;
Prev = Library->LastPlanetOpt;
if (Library->LastPlanetOpt)
	{
	Library->LastPlanetOpt->Next = this;
	Library->LastPlanetOpt = this;
	} // if
else
	{
	Library->PlanetOpts = Library->LastPlanetOpt = this;
	} // else
Name[0] = NULL;
SetDefaults();
if (Proto)
	{
	Copy(this, Proto);
	Name[0] = NULL;
	strcpy(NameBase, Proto->Name);
	} // if
else
	{
	strcpy(NameBase, "Planet Options");
	} // else
if (Library)
	{
	SetUniqueName(Library, NameBase);
	Coords = (CoordSys *)Library->GetDefaultEffect(WCS_EFFECTSSUBCLASS_COORDSYS, 0, NULL);
	} // if

} // PlanetOpt::PlanetOpt
Exemplo n.º 2
0
void
Duration::Init()
{
	SetUniqueName();
}