moved PlayerNumber into a separate header to reduce dependences on GameConstantsAndTypes.h

default mappings for menu buttons
items in battle now have a duration
fix VC6 compile errors
This commit is contained in:
Chris Danford
2003-02-26 00:20:00 +00:00
parent ad40c01161
commit 22ef6c358b
46 changed files with 417 additions and 132 deletions
-26
View File
@@ -12,22 +12,6 @@
#include "NoteTypes.h"
RageColor NoteTypeToColor( NoteType nt )
{
switch( nt )
{
case NOTE_TYPE_4TH: return RageColor(1,0,0,1); // red
case NOTE_TYPE_8TH: return RageColor(0,0,1,1); // blue
case NOTE_TYPE_12TH: return RageColor(1,0,1,1); // purple
case NOTE_TYPE_16TH: return RageColor(1,1,0,1); // yellow
case NOTE_TYPE_24TH: return RageColor(0,1,1,1); // light blue
default:
ASSERT(0);
case NOTE_TYPE_32ND: // fall through
return RageColor(0.5f,0.5f,0.5f,1); // gray
}
};
float NoteTypeToBeat( NoteType nt )
{
switch( nt )
@@ -77,13 +61,3 @@ bool IsNoteOfType( int iNoteIndex, NoteType t )
return GetNoteType(iNoteIndex) == t;
}
RageColor GetNoteColorFromIndex( int iIndex )
{
return NoteTypeToColor( GetNoteType(iIndex) );
}
RageColor GetNoteColorFromBeat( float fBeat )
{
return GetNoteColorFromIndex( BeatToNoteRow(fBeat) );
}