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

MusicWheel Class Reference

#include <MusicWheel.h>

Inheritance diagram for MusicWheel:

Inheritance graph
[legend]
Collaboration diagram for MusicWheel:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MusicWheel ()
 ~MusicWheel ()
void Load ()
virtual void Update (float fDeltaTime)
virtual void DrawPrimitives ()
void DrawItem (int index)
virtual void TweenOnScreen (bool changing_sort)
virtual void TweenOffScreen (bool changing_sort)
virtual void TweenOnScreen ()
virtual void TweenOffScreen ()
void Move (int n)
bool ChangeSort (SortOrder new_so)
bool NextSort ()
void StartRoulette ()
void StartRandom ()
bool IsRouletting () const
int IsMoving () const
bool IsSettled () const
void NotesOrTrailChanged (PlayerNumber pn)
void GetItemPosition (float fPosOffsetsFromMiddle, float &fX_out, float &fY_out, float &fZ_out, float &fRotationX_out)
void SetItemPosition (Actor &item, float fPosOffsetsFromMiddle)
bool Select ()
WheelItemType GetSelectedType ()
SongGetSelectedSong ()
CourseGetSelectedCourse ()
CString GetSelectedSection ()
bool WheelIsLocked ()
void RebuildMusicWheelItems ()
SongGetPreferredSelectionForRandomOrPortal ()
bool SelectSong (Song *p)
bool SelectSection (const CString &SectionName)
void SetOpenGroup (CString group, SortOrder so=SORT_INVALID)

Protected Types

enum  WheelState {
  STATE_SELECTING_MUSIC, STATE_FLYING_OFF_BEFORE_NEXT_SORT, STATE_FLYING_ON_AFTER_NEXT_SORT, STATE_TWEENING_ON_SCREEN,
  STATE_TWEENING_OFF_SCREEN, STATE_WAITING_OFF_SCREEN, STATE_ROULETTE_SPINNING, STATE_ROULETTE_SLOWING_DOWN,
  STATE_RANDOM_SPINNING, STATE_LOCKED
}

Protected Member Functions

void GetSongList (vector< Song * > &arraySongs, SortOrder so, CString sPreferredGroup)
void BuildWheelItemDatas (vector< WheelItemData > &arrayWheelItems, SortOrder so)
bool SelectSongOrCourse ()
bool SelectCourse (Course *p)
bool SelectSort (SortOrder so)
void ChangeMusic (int dist)
bool WheelItemIsVisible (int n)
void UpdateScrollbar ()

Protected Attributes

ScrollBar m_ScrollBar
AutoActor m_sprHighlight
vector< WheelItemDatam_WheelItemDatas [NUM_SORT_ORDERS]
vector< WheelItemData * > m_CurWheelItemData
MusicWheelItem m_MusicWheelItems [MAX_VISIBLE_WHEEL_ITEMS]
int m_iSelection
CString m_sExpandedSectionName
SortOrder m_LastSortOrder
int m_iSwitchesLeftInSpinDown
float m_fLockedWheelVelocity
int m_Moving
RageTimer m_MovingSoundTimer
float m_TimeBeforeMovingBegins
float m_SpinSpeed
WheelState m_WheelState
float m_fTimeLeftInState
float m_fPositionOffsetFromSelection
RageSound m_soundChangeMusic
RageSound m_soundChangeSort
RageSound m_soundExpand
RageSound m_soundLocked

Member Enumeration Documentation

enum MusicWheel::WheelState [protected]
 

Enumeration values:
STATE_SELECTING_MUSIC 
STATE_FLYING_OFF_BEFORE_NEXT_SORT 
STATE_FLYING_ON_AFTER_NEXT_SORT 
STATE_TWEENING_ON_SCREEN 
STATE_TWEENING_OFF_SCREEN 
STATE_WAITING_OFF_SCREEN 
STATE_ROULETTE_SPINNING 
STATE_ROULETTE_SLOWING_DOWN 
STATE_RANDOM_SPINNING 
STATE_LOCKED 


Constructor & Destructor Documentation

MusicWheel::MusicWheel  ) 
 

MusicWheel::~MusicWheel  ) 
 


Member Function Documentation

void MusicWheel::BuildWheelItemDatas vector< WheelItemData > &  arrayWheelItems,
SortOrder  so
[protected]
 

void MusicWheel::ChangeMusic int  dist  )  [protected]
 

bool MusicWheel::ChangeSort SortOrder  new_so  ) 
 

void MusicWheel::DrawItem int  index  ) 
 

void MusicWheel::DrawPrimitives  )  [virtual]
 

Reimplemented from ActorFrame.

void MusicWheel::GetItemPosition float  fPosOffsetsFromMiddle,
float &  fX_out,
float &  fY_out,
float &  fZ_out,
float &  fRotationX_out
 

Song * MusicWheel::GetPreferredSelectionForRandomOrPortal  ) 
 

Course* MusicWheel::GetSelectedCourse  )  [inline]
 

CString MusicWheel::GetSelectedSection  )  [inline]
 

Song * MusicWheel::GetSelectedSong  ) 
 

WheelItemType MusicWheel::GetSelectedType  )  [inline]
 

void MusicWheel::GetSongList vector< Song * > &  arraySongs,
SortOrder  so,
CString  sPreferredGroup
[protected]
 

int MusicWheel::IsMoving  )  const
 

bool MusicWheel::IsRouletting  )  const
 

bool MusicWheel::IsSettled  )  const
 

void MusicWheel::Load  ) 
 

void MusicWheel::Move int  n  ) 
 

bool MusicWheel::NextSort  ) 
 

void MusicWheel::NotesOrTrailChanged PlayerNumber  pn  ) 
 

void MusicWheel::RebuildMusicWheelItems  ) 
 

bool MusicWheel::Select  ) 
 

bool MusicWheel::SelectCourse Course p  )  [protected]
 

bool MusicWheel::SelectSection const CString &  SectionName  ) 
 

bool MusicWheel::SelectSong Song p  ) 
 

bool MusicWheel::SelectSongOrCourse  )  [protected]
 

bool MusicWheel::SelectSort SortOrder  so  )  [protected]
 

void MusicWheel::SetItemPosition Actor item,
float  fPosOffsetsFromMiddle
 

void MusicWheel::SetOpenGroup CString  group,
SortOrder  so = SORT_INVALID
 

void MusicWheel::StartRandom  ) 
 

void MusicWheel::StartRoulette  ) 
 

virtual void MusicWheel::TweenOffScreen  )  [inline, virtual]
 

void MusicWheel::TweenOffScreen bool  changing_sort  )  [virtual]
 

virtual void MusicWheel::TweenOnScreen  )  [inline, virtual]
 

void MusicWheel::TweenOnScreen bool  changing_sort  )  [virtual]
 

void MusicWheel::Update float  fDeltaTime  )  [virtual]
 

Reimplemented from ActorFrame.

void MusicWheel::UpdateScrollbar  )  [protected]
 

bool MusicWheel::WheelIsLocked  )  [inline]
 

bool MusicWheel::WheelItemIsVisible int  n  )  [protected]
 


Member Data Documentation

vector<WheelItemData *> MusicWheel::m_CurWheelItemData [protected]
 

float MusicWheel::m_fLockedWheelVelocity [protected]
 

float MusicWheel::m_fPositionOffsetFromSelection [protected]
 

float MusicWheel::m_fTimeLeftInState [protected]
 

int MusicWheel::m_iSelection [protected]
 

int MusicWheel::m_iSwitchesLeftInSpinDown [protected]
 

SortOrder MusicWheel::m_LastSortOrder [protected]
 

int MusicWheel::m_Moving [protected]
 

RageTimer MusicWheel::m_MovingSoundTimer [protected]
 

MusicWheelItem MusicWheel::m_MusicWheelItems[MAX_VISIBLE_WHEEL_ITEMS] [protected]
 

ScrollBar MusicWheel::m_ScrollBar [protected]
 

CString MusicWheel::m_sExpandedSectionName [protected]
 

RageSound MusicWheel::m_soundChangeMusic [protected]
 

RageSound MusicWheel::m_soundChangeSort [protected]
 

RageSound MusicWheel::m_soundExpand [protected]
 

RageSound MusicWheel::m_soundLocked [protected]
 

float MusicWheel::m_SpinSpeed [protected]
 

AutoActor MusicWheel::m_sprHighlight [protected]
 

float MusicWheel::m_TimeBeforeMovingBegins [protected]
 

vector<WheelItemData> MusicWheel::m_WheelItemDatas[NUM_SORT_ORDERS] [protected]
 

WheelState MusicWheel::m_WheelState [protected]
 


The documentation for this class was generated from the following files:
Generated on Thu Jan 27 21:00:12 2005 for StepMania by doxygen 1.3.7