Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

NoteTypes.h File Reference

#include "GameConstantsAndTypes.h"

Go to the source code of this file.

Classes

struct  TapNoteResult
struct  HoldNoteResult
struct  TapNote

Defines

#define COMPARE(x)   if(x!=other.x) return false;

Enumerations

enum  NoteType {
  NOTE_TYPE_4TH, NOTE_TYPE_8TH, NOTE_TYPE_12TH, NOTE_TYPE_16TH,
  NOTE_TYPE_24TH, NOTE_TYPE_32ND, NOTE_TYPE_48TH, NOTE_TYPE_64TH,
  NOTE_TYPE_192ND, NUM_NOTE_TYPES, NOTE_TYPE_INVALID
}

Functions

float NoteTypeToBeat (NoteType nt)
NoteType GetNoteType (int row)
NoteType BeatToNoteType (float fBeat)
bool IsNoteOfType (int row, NoteType t)
CString NoteTypeToString (NoteType nt)
int BeatToNoteRow (float fBeatNum)
int BeatToNoteRowNotRounded (float fBeatNum)
float NoteRowToBeat (int iRow)

Variables

TapNote TAP_EMPTY
TapNote TAP_ORIGINAL_TAP
TapNote TAP_ORIGINAL_HOLD_HEAD
TapNote TAP_ORIGINAL_HOLD_TAIL
TapNote TAP_ORIGINAL_MINE
TapNote TAP_ORIGINAL_ATTACK
TapNote TAP_ORIGINAL_AUTO_KEYSOUND
TapNote TAP_ADDITION_TAP
TapNote TAP_ADDITION_MINE
const int MAX_NOTE_TRACKS = 16
const int ROWS_PER_BEAT = 48*1000
const int BEATS_PER_MEASURE = 4
const int ROWS_PER_MEASURE = ROWS_PER_BEAT * BEATS_PER_MEASURE
const int MAX_NOTE_ROW = (1<<30)


Define Documentation

#define COMPARE  )     if(x!=other.x) return false;
 


Enumeration Type Documentation

enum NoteType
 

Enumeration values:
NOTE_TYPE_4TH 
NOTE_TYPE_8TH 
NOTE_TYPE_12TH 
NOTE_TYPE_16TH 
NOTE_TYPE_24TH 
NOTE_TYPE_32ND 
NOTE_TYPE_48TH 
NOTE_TYPE_64TH 
NOTE_TYPE_192ND 
NUM_NOTE_TYPES 
NOTE_TYPE_INVALID 


Function Documentation

int BeatToNoteRow float  fBeatNum  )  [inline]
 

int BeatToNoteRowNotRounded float  fBeatNum  )  [inline]
 

NoteType BeatToNoteType float  fBeat  ) 
 

NoteType GetNoteType int  row  ) 
 

bool IsNoteOfType int  row,
NoteType  t
 

float NoteRowToBeat int  iRow  )  [inline]
 

float NoteTypeToBeat NoteType  nt  ) 
 

CString NoteTypeToString NoteType  nt  ) 
 


Variable Documentation

const int BEATS_PER_MEASURE = 4
 

const int MAX_NOTE_ROW = (1<<30)
 

const int MAX_NOTE_TRACKS = 16
 

const int ROWS_PER_BEAT = 48*1000
 

const int ROWS_PER_MEASURE = ROWS_PER_BEAT * BEATS_PER_MEASURE
 

TapNote TAP_ADDITION_MINE
 

TapNote TAP_ADDITION_TAP
 

TapNote TAP_EMPTY
 

TapNote TAP_ORIGINAL_ATTACK
 

TapNote TAP_ORIGINAL_AUTO_KEYSOUND
 

TapNote TAP_ORIGINAL_HOLD_HEAD
 

TapNote TAP_ORIGINAL_HOLD_TAIL
 

TapNote TAP_ORIGINAL_MINE
 

TapNote TAP_ORIGINAL_TAP
 


Generated on Thu Jan 27 20:57:46 2005 for StepMania by doxygen 1.3.7