#include "global.h" /* ----------------------------------------------------------------------------- File: ActiveAttackList.h Desc: A graphic displayed in the ActiveAttackList during Dancing. Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved. Chris Danford ----------------------------------------------------------------------------- */ #include "ActiveAttackList.h" #include "RageUtil.h" #include "GameState.h" #include "ThemeManager.h" #include "Inventory.h" #include "RageTimer.h" ActiveAttackList::ActiveAttackList() { } void ActiveAttackList::Init( PlayerNumber pn ) { m_PlayerNumber = pn; } void ActiveAttackList::Update( float fDelta ) { BitmapText::Update( fDelta ); bool bTimeToUpdate = GAMESTATE->m_bAttackBeganThisUpdate[m_PlayerNumber] || GAMESTATE->m_bAttackEndedThisUpdate[m_PlayerNumber]; if( bTimeToUpdate ) { CString s; const AttackArray& attacks = GAMESTATE->m_ActiveAttacks[m_PlayerNumber]; // NUM_INVENTORY_SLOTS // clear all lines, then add all active attacks for( unsigned i=0; iSetText( s ); // BitmapText will not rebuild vertices if these strings are the same. } }