From 3471ad3f53c3d751be2eab0f128532a0b92dc683 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 25 Oct 2003 22:55:11 +0000 Subject: [PATCH] add Course::Info::GetAttackArray --- stepmania/src/Course.cpp | 11 +++++++++++ stepmania/src/Course.h | 3 +++ 2 files changed, 14 insertions(+) diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index ca55dd2486..91d224bf5f 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -934,3 +934,14 @@ void Course::UpdateCourseStats() this->m_sName.c_str(), SortOrder_TotalDifficulty ); } + +void Course::Info::GetAttackArray( AttackArray &out ) const +{ + Attack a; + a.fStartSecond = -1; + a.fSecsRemaining = 10000; /* whole song */ + a.level = ATTACK_LEVEL_1; + a.sModifier = Modifiers; + + out.push_back( a ); +} diff --git a/stepmania/src/Course.h b/stepmania/src/Course.h index d12600b0e5..6b6f897e7a 100644 --- a/stepmania/src/Course.h +++ b/stepmania/src/Course.h @@ -13,6 +13,7 @@ #include "PlayerNumber.h" #include "GameConstantsAndTypes.h" +#include "Attack.h" struct PlayerOptions; struct SongOptions; @@ -95,6 +96,8 @@ public: struct Info { Info(): pSong(NULL), pNotes(NULL), Random(false), Difficult(false) { } + void GetAttackArray( AttackArray &out ) const; + Song* pSong; Steps* pNotes; CString Modifiers;