add Course::FindFixedSong, Attack::FromGlobalCourseModifier

This commit is contained in:
Glenn Maynard
2005-01-03 23:30:56 +00:00
parent c82a6fa313
commit 0f010d2321
5 changed files with 27 additions and 10 deletions
+11
View File
@@ -54,6 +54,17 @@ bool Attack::ContainsTransformOrTurn() const
return po.ContainsTransformOrTurn();
}
Attack Attack::FromGlobalCourseModifier( const CString &sModifiers )
{
Attack a;
a.fStartSecond = 0;
a.fSecsRemaining = 10000; /* whole song */
a.level = ATTACK_LEVEL_1;
a.sModifier = sModifiers;
a.bGlobal = true;
return a;
}
bool AttackArray::ContainsTransformOrTurn() const
{
FOREACH_CONST( Attack, *this, a )