add Course::Info::GetAttackArray
This commit is contained in:
@@ -934,3 +934,14 @@ void Course::UpdateCourseStats()
|
|||||||
this->m_sName.c_str(),
|
this->m_sName.c_str(),
|
||||||
SortOrder_TotalDifficulty );
|
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 );
|
||||||
|
}
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
#include "PlayerNumber.h"
|
#include "PlayerNumber.h"
|
||||||
#include "GameConstantsAndTypes.h"
|
#include "GameConstantsAndTypes.h"
|
||||||
|
#include "Attack.h"
|
||||||
|
|
||||||
struct PlayerOptions;
|
struct PlayerOptions;
|
||||||
struct SongOptions;
|
struct SongOptions;
|
||||||
@@ -95,6 +96,8 @@ public:
|
|||||||
struct Info
|
struct Info
|
||||||
{
|
{
|
||||||
Info(): pSong(NULL), pNotes(NULL), Random(false), Difficult(false) { }
|
Info(): pSong(NULL), pNotes(NULL), Random(false), Difficult(false) { }
|
||||||
|
void GetAttackArray( AttackArray &out ) const;
|
||||||
|
|
||||||
Song* pSong;
|
Song* pSong;
|
||||||
Steps* pNotes;
|
Steps* pNotes;
|
||||||
CString Modifiers;
|
CString Modifiers;
|
||||||
|
|||||||
Reference in New Issue
Block a user