Files
itgmania212121/stepmania/src/Style.h
T

58 lines
1.4 KiB
C
Raw Normal View History

#ifndef STYLE_H
#define STYLE_H
/*
-----------------------------------------------------------------------------
File: Style
Desc: .
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
enum Style
{
STYLE_DANCE_SINGLE,
STYLE_DANCE_VERSUS,
STYLE_DANCE_DOUBLE,
STYLE_DANCE_COUPLE,
STYLE_DANCE_SOLO,
2002-09-12 08:37:12 +00:00
STYLE_DANCE_EDIT_COUPLE,
STYLE_PUMP_SINGLE,
STYLE_PUMP_VERSUS,
STYLE_PUMP_DOUBLE,
2002-09-09 23:15:43 +00:00
STYLE_PUMP_COUPLE,
STYLE_PUMP_EDIT_COUPLE,
STYLE_EZ2_SINGLE,
STYLE_EZ2_REAL,
STYLE_EZ2_SINGLE_VERSUS,
STYLE_EZ2_REAL_VERSUS,
STYLE_EZ2_DOUBLE,
2002-09-07 02:50:23 +00:00
STYLE_PARA_SINGLE,
NUM_STYLES, // leave this at the end
STYLE_NONE,
};
2002-09-12 08:37:12 +00:00
const int NUM_DANCE_STYLES = 6;
const int NUM_PUMP_STYLES = 5;
2002-09-29 05:06:18 +00:00
const int NUM_EZ2_STYLES = 5;
2002-09-07 02:50:23 +00:00
const int NUM_PARA_STYLES = 1;
// Ugh. This is needed for the style icon.
// TODO: Find a more elegant way to handle this
inline int GetStyleIndexRelativeToGame( int iGameIndex, Style style )
{
int iStyleIndex = style;
switch( iGameIndex )
{
2002-09-29 05:06:18 +00:00
case 0: break; // dance
case 1: iStyleIndex -= NUM_DANCE_STYLES; break; // pump
case 2: iStyleIndex -= NUM_DANCE_STYLES+NUM_PUMP_STYLES; break; // ez2
case 3: iStyleIndex -= NUM_DANCE_STYLES+NUM_PUMP_STYLES+NUM_EZ2_STYLES; break; // para
default: ASSERT(0); // invalid game index
}
return iStyleIndex;
}
#endif