00001 /* ScoreKeeperRave - Launches attacks in PLAY_MODE_RAVE. */ 00002 00003 #ifndef ScoreKeeperRave_H 00004 #define ScoreKeeperRave_H 00005 00006 #include "ScoreKeeper.h" 00007 #include "GameConstantsAndTypes.h" 00008 00009 00010 class ScoreKeeperRave : public ScoreKeeper 00011 { 00012 public: 00013 // Overrides 00014 ScoreKeeperRave( PlayerState* pPlayerState, PlayerStageStats* pPlayerStageStats ); 00015 void Update( float fDelta ); 00016 void OnNextSong( int iSongInCourseIndex, const Steps* pSteps, const NoteData* pNoteData ); // before a song plays (called multiple times if course) 00017 void HandleTapScore( TapNoteScore score ); 00018 void HandleTapRowScore( TapNoteScore scoreOfLastTap, int iNumTapsInRow ); 00019 void HandleHoldScore( HoldNoteScore holdScore, TapNoteScore tapScore ); 00020 00021 protected: 00022 void LaunchAttack( AttackLevel al ); 00023 void AddSuperMeterDelta( float fUnscaledPercentChange ); 00024 }; 00025 00026 #endif 00027 00028 /* 00029 * (c) 2001-2004 Chris Danford 00030 * All rights reserved. 00031 * 00032 * Permission is hereby granted, free of charge, to any person obtaining a 00033 * copy of this software and associated documentation files (the 00034 * "Software"), to deal in the Software without restriction, including 00035 * without limitation the rights to use, copy, modify, merge, publish, 00036 * distribute, and/or sell copies of the Software, and to permit persons to 00037 * whom the Software is furnished to do so, provided that the above 00038 * copyright notice(s) and this permission notice appear in all copies of 00039 * the Software and that both the above copyright notice(s) and this 00040 * permission notice appear in supporting documentation. 00041 * 00042 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00043 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00044 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00045 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00046 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00047 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00048 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00049 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00050 * PERFORMANCE OF THIS SOFTWARE. 00051 */