2002-02-24 01:43:11 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
2002-03-19 07:09:49 +00:00
|
|
|
File: StyleDef.h
|
2002-02-24 01:43:11 +00:00
|
|
|
|
|
|
|
|
Desc: A data structure that holds the definition of a GameMode.
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2001 Chris Danford. All rights reserved.
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef _Style_H_
|
|
|
|
|
#define _Style_H_
|
|
|
|
|
|
2002-03-19 07:09:49 +00:00
|
|
|
#include "Pattern.h"
|
2002-02-24 01:43:11 +00:00
|
|
|
|
|
|
|
|
|
2002-03-02 23:40:35 +00:00
|
|
|
const int MAX_NUM_COLUMNS = 12;
|
2002-02-24 01:43:11 +00:00
|
|
|
|
|
|
|
|
|
2002-03-19 07:09:49 +00:00
|
|
|
|
|
|
|
|
struct StyleDef
|
2002-02-24 01:43:11 +00:00
|
|
|
{
|
|
|
|
|
int m_iNumPlayers;
|
|
|
|
|
int m_iNumColumns; // will vary depending on the number panels (4,6,8,etc)
|
2002-03-19 07:09:49 +00:00
|
|
|
TapNote m_ColumnToTapNote[MAX_NUM_COLUMNS];
|
2002-02-24 01:43:11 +00:00
|
|
|
float m_ColumnToRotation[MAX_NUM_COLUMNS];
|
|
|
|
|
|
2002-03-19 07:09:49 +00:00
|
|
|
inline int TapNoteToColumnNumber( TapNote tap_step )
|
2002-02-24 01:43:11 +00:00
|
|
|
{
|
2002-03-09 06:19:40 +00:00
|
|
|
for (int i=0; i<m_iNumColumns; i++)
|
2002-02-24 01:43:11 +00:00
|
|
|
{
|
2002-03-19 07:09:49 +00:00
|
|
|
if( m_ColumnToTapNote[i] == tap_step )
|
2002-02-24 01:43:11 +00:00
|
|
|
return i;
|
|
|
|
|
}
|
2002-03-09 06:19:40 +00:00
|
|
|
|
2002-03-19 07:09:49 +00:00
|
|
|
return -1; // the TapNote is not used in this StyleDef
|
2002-02-24 01:43:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|