2002-11-16 08:07:38 +00:00
|
|
|
#ifndef NOTEFIELD_H
|
|
|
|
|
#define NOTEFIELD_H
|
2002-04-16 17:31:00 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
Class: NoteField
|
|
|
|
|
|
2002-04-28 20:42:32 +00:00
|
|
|
Desc: A stream of ColorNotes that scrolls past Y==0.
|
2002-04-16 17:31:00 +00:00
|
|
|
|
2002-05-19 01:59:48 +00:00
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
2002-04-16 17:31:00 +00:00
|
|
|
Chris Danford
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "Sprite.h"
|
|
|
|
|
#include "ActorFrame.h"
|
2003-02-16 04:28:17 +00:00
|
|
|
#include "song.h"
|
2002-04-16 17:31:00 +00:00
|
|
|
#include "BitmapText.h"
|
2002-07-23 01:41:40 +00:00
|
|
|
#include "PrefsManager.h"
|
2002-04-16 17:31:00 +00:00
|
|
|
#include "StyleDef.h"
|
|
|
|
|
#include "BitmapText.h"
|
2002-05-19 01:59:48 +00:00
|
|
|
#include "Quad.h"
|
2002-04-16 17:31:00 +00:00
|
|
|
#include "ArrowEffects.h"
|
2002-08-01 03:15:27 +00:00
|
|
|
#include "NoteDataWithScoring.h"
|
2002-08-13 23:26:46 +00:00
|
|
|
#include "NoteDisplay.h"
|
2002-04-16 17:31:00 +00:00
|
|
|
|
|
|
|
|
|
2002-08-01 03:15:27 +00:00
|
|
|
class NoteField : public NoteDataWithScoring, public ActorFrame
|
2002-04-16 17:31:00 +00:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
NoteField();
|
2002-07-28 20:28:37 +00:00
|
|
|
virtual void Update( float fDeltaTime );
|
2002-05-19 01:59:48 +00:00
|
|
|
virtual void DrawPrimitives();
|
2002-04-16 17:31:00 +00:00
|
|
|
|
2003-04-22 04:54:04 +00:00
|
|
|
void Load( NoteData* pNoteData, PlayerNumber pn, int iFirstPixelToDraw, int iLastPixelToDraw );
|
|
|
|
|
void RemoveTapNoteRow( int iIndex );
|
2002-04-16 17:31:00 +00:00
|
|
|
|
2002-11-03 21:45:26 +00:00
|
|
|
vector<bool> m_bIsHoldingHoldNote; // hack: Need this to know when to "light up" the center of hold notes
|
2002-04-16 17:31:00 +00:00
|
|
|
|
|
|
|
|
float m_fBeginMarker, m_fEndMarker; // only used with MODE_EDIT
|
|
|
|
|
|
2002-08-01 21:55:40 +00:00
|
|
|
void FadeToFail();
|
2002-06-27 17:49:10 +00:00
|
|
|
|
2002-04-16 17:31:00 +00:00
|
|
|
protected:
|
2003-05-30 20:23:57 +00:00
|
|
|
void ReloadNoteSkin();
|
2003-02-18 23:15:38 +00:00
|
|
|
void DrawBeatBar( const float fBeat );
|
2002-08-23 20:18:29 +00:00
|
|
|
void DrawMarkerBar( const float fBeat );
|
2003-02-18 23:15:38 +00:00
|
|
|
void DrawAreaHighlight( const float fStartBeat, const float fEndBeat );
|
2002-08-23 20:18:29 +00:00
|
|
|
void DrawBPMText( const float fBeat, const float fBPM );
|
|
|
|
|
void DrawFreezeText( const float fBeat, const float fBPM );
|
|
|
|
|
void DrawBGChangeText( const float fBeat, const CString sNewBGName );
|
2003-02-19 07:59:00 +00:00
|
|
|
float GetWidth();
|
2002-04-16 17:31:00 +00:00
|
|
|
|
2002-08-01 21:55:40 +00:00
|
|
|
float m_fPercentFadeToFail; // -1 of not fading to fail
|
|
|
|
|
|
2002-07-28 20:28:37 +00:00
|
|
|
PlayerNumber m_PlayerNumber;
|
2003-01-25 11:05:12 +00:00
|
|
|
int m_iFirstPixelToDraw; // this should be a negative number
|
|
|
|
|
int m_iLastPixelToDraw; // this should be a positive number
|
2002-04-16 17:31:00 +00:00
|
|
|
|
|
|
|
|
// color arrows
|
2002-08-13 23:26:46 +00:00
|
|
|
NoteDisplay m_NoteDisplay[MAX_NOTE_TRACKS];
|
2002-04-16 17:31:00 +00:00
|
|
|
|
|
|
|
|
// used in MODE_EDIT
|
2003-02-22 00:22:27 +00:00
|
|
|
Sprite m_sprBars; // 4 frames: Measure, 4th, 8th, 16th
|
2002-04-16 17:31:00 +00:00
|
|
|
BitmapText m_textMeasureNumber;
|
2002-06-14 22:25:22 +00:00
|
|
|
Quad m_rectMarkerBar;
|
2003-02-18 23:15:38 +00:00
|
|
|
Quad m_rectAreaHighlight;
|
2003-05-30 20:23:57 +00:00
|
|
|
CString m_sLastSeenNoteSkin;
|
2002-04-16 17:31:00 +00:00
|
|
|
};
|
2002-11-16 08:07:38 +00:00
|
|
|
|
|
|
|
|
#endif
|