Files
itgmania212121/stepmania/src/Style.h
T

43 lines
852 B
C
Raw Normal View History

2002-02-24 01:43:11 +00:00
/*
-----------------------------------------------------------------------------
File: Style.h
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_
#include "Steps.h"
const int MAX_NUM_COLUMNS = 12;
2002-02-24 01:43:11 +00:00
struct Style
{
int m_iNumPlayers;
int m_iNumColumns; // will vary depending on the number panels (4,6,8,etc)
TapStep m_ColumnToTapStep[MAX_NUM_COLUMNS];
float m_ColumnToRotation[MAX_NUM_COLUMNS];
int TapStepToColumnNumber( TapStep tap_step )
{
2002-03-09 06:19:40 +00:00
for (int i=0; i<m_iNumColumns; i++)
2002-02-24 01:43:11 +00:00
{
if( m_ColumnToTapStep[i] == tap_step )
return i;
}
2002-03-09 06:19:40 +00:00
return -1; // the TapStep is not used in this style
2002-02-24 01:43:11 +00:00
};
};
Style GetStyle( GameMode mode );
#endif