From 0f1743a468ec3adddb3e1680f83485d4066bbe3b Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 14 Aug 2003 07:30:00 +0000 Subject: [PATCH] remove unused ActiveItemList --- stepmania/src/ActiveItemList.cpp | 82 -------------------------------- stepmania/src/ActiveItemList.h | 39 --------------- stepmania/src/ScreenGameplay.cpp | 13 ----- stepmania/src/ScreenGameplay.h | 2 - 4 files changed, 136 deletions(-) delete mode 100644 stepmania/src/ActiveItemList.cpp delete mode 100644 stepmania/src/ActiveItemList.h diff --git a/stepmania/src/ActiveItemList.cpp b/stepmania/src/ActiveItemList.cpp deleted file mode 100644 index 060c78cbbe..0000000000 --- a/stepmania/src/ActiveItemList.cpp +++ /dev/null @@ -1,82 +0,0 @@ -#include "global.h" -/* ------------------------------------------------------------------------------ - File: ActiveItemList.h - - Desc: A graphic displayed in the ActiveItemList during Dancing. - - Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved. - Chris Danford ------------------------------------------------------------------------------ -*/ - -#include "ActiveItemList.h" -#include "RageUtil.h" -#include "GameState.h" -#include "ThemeManager.h" -#include "Inventory.h" -#include "RageTimer.h" - - -#define TEXT_HORIZ_ALIGN( p ) THEME->GetMetricI("ActiveItemList",ssprintf("TextHorizAlignP%d",p+1)) -#define TEXT_ZOOM THEME->GetMetricF("ActiveItemList","TextZoom") -#define SPACING_Y THEME->GetMetricF("ActiveItemList","SpacingY") - - -ActiveItemList::ActiveItemList() -{ -} - -void ActiveItemList::Init( PlayerNumber pn ) -{ - m_PlayerNumber = pn; - - int i; - - for( i=0; iGetPathToF("Common normal") ); - m_text[i].SetZoom( TEXT_ZOOM ); -// m_text[i].SetText( "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW" ); - this->AddChild( &m_text[i] ); - } - - for( i=0; im_PlayerOptions[pn].m_fReverseScroll == 1; - float fHeight = SPACING_Y*MAX_ACTIVE_ITEMS_LINES * (bReverse ? 1 : -1 ); - float fY = SCALE(i,0.f,MAX_ACTIVE_ITEMS_LINES,0.f,fHeight); - m_text[i].SetY( fY ); - } - -} - - -void ActiveItemList::Update( float fDelta ) -{ - ActorFrame::Update( fDelta ); - - - // refresh text only once every second - float fNowSeconds = RageTimer::GetTimeSinceStart(); - float fLastSeconds = RageTimer::GetTimeSinceStart() - fDelta; - - if( (int)fNowSeconds != (int)fLastSeconds ) - { - GameState::Attack* sActiveAttacks = GAMESTATE->m_ActiveAttacks[m_PlayerNumber]; // NUM_INVENTORY_SLOTS - for( int s=0; sm_PlayMode ) - { - case PLAY_MODE_HUMAN_BATTLE: - case PLAY_MODE_CPU_BATTLE: - m_ActiveItemList[p].Init( (PlayerNumber)p ); - /* Position it in LoadNextSong. */ - this->AddChild( &m_ActiveItemList[p] ); - break; - } - m_sprOniGameOver[p].Load( THEME->GetPathToG("ScreenGameplay oni gameover") ); m_sprOniGameOver[p].SetX( fPlayerX ); m_sprOniGameOver[p].SetY( SCREEN_TOP - m_sprOniGameOver[p].GetZoomedHeight()/2 ); @@ -809,9 +799,6 @@ void ScreenGameplay::LoadNextSong() if( !GAMESTATE->IsPlayerEnabled(PlayerNumber(p)) ) continue; - m_ActiveItemList[p].SetName( ssprintf("ActiveItemsP%d%s%s",p+1,bExtra?"Extra":"",bReverse[p]?"Reverse":"") ); - SET_XY( m_ActiveItemList[p] ); - m_DifficultyIcon[p].SetName( ssprintf("DifficultyP%d%s%s",p+1,bExtra?"Extra":"",bReverse[p]?"Reverse":"") ); SET_XY( m_DifficultyIcon[p] ); } diff --git a/stepmania/src/ScreenGameplay.h b/stepmania/src/ScreenGameplay.h index 8c4e1bbc7a..439855d10d 100644 --- a/stepmania/src/ScreenGameplay.h +++ b/stepmania/src/ScreenGameplay.h @@ -24,7 +24,6 @@ #include "DifficultyIcon.h" #include "BPMDisplay.h" class Inventory; -#include "ActiveItemList.h" //#include "BeginnerHelper.h" // uncomment once it's checked in #include "LyricDisplay.h" #include "TimingAssist.h" @@ -144,7 +143,6 @@ protected: // used in PLAY_MODE_BATTLE Inventory* m_pInventory[NUM_PLAYERS]; - ActiveItemList m_ActiveItemList[NUM_PLAYERS]; DifficultyIcon m_DifficultyIcon[NUM_PLAYERS];