#pragma once /* ----------------------------------------------------------------------------- Class: GameDef Desc: Holds information about a particular style of a game (e.g. "single", "double"). Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved. Chris Danford ----------------------------------------------------------------------------- */ #include "Notes.h" #include "NoteData.h" #include "GameInput.h" #include "GameConstantsAndTypes.h" #include "MenuInput.h" const int MAX_STYLES_PER_GAME = 10; enum GameButtonGraphic { GRAPHIC_NOTE_COLOR_PART, GRAPHIC_NOTE_GRAY_PART, GRAPHIC_RECEPTOR, GRAPHIC_TAP_EXPLOSION_BRIGHT, GRAPHIC_TAP_EXPLOSION_DIM, GRAPHIC_HOLD_EXPLOSION, NUM_GAME_BUTTON_GRAPHICS // leave this at the end }; class StyleDef; class GameDef { public: char m_szName[60]; char m_szDescription[60]; int m_iNumInstruments; int m_iButtonsPerInstrument; char m_szButtonNames[60][MAX_INSTRUMENT_BUTTONS]; // e.g. "left", "right", "middle C", "snare" // int ButtonNameToIndex( const CString &sButtonName ) // { // for( int i=0; i &arrayTweenColors ); CString ElementToGraphicSuffix( const GameButtonGraphic gbg ); inline MenuInput GameInputToMenuInput( const GameInput GameI ) { PlayerNumber p = (PlayerNumber)GameI.number; for( int b=0; b