00001 #ifndef COMBINEDLIFEMETER_H 00002 #define COMBINEDLIFEMETER_H 00003 00004 #include "PlayerNumber.h" 00005 #include "GameConstantsAndTypes.h" 00006 #include "ActorFrame.h" 00007 00008 00009 class CombinedLifeMeter : public ActorFrame 00010 { 00011 public: 00012 CombinedLifeMeter() {}; 00013 virtual ~CombinedLifeMeter() {}; 00014 00015 virtual void OnSongEnded() {}; 00016 /* Change life after receiving a tap note grade. This *is* called for 00017 * the head of hold notes. */ 00018 virtual void ChangeLife( PlayerNumber pn, TapNoteScore score ) = 0; 00019 /* Change life after receiving a hold note grade. tscore is the score 00020 * received for the initial tap note. */ 00021 virtual void ChangeLife( PlayerNumber pn, HoldNoteScore score, TapNoteScore tscore ) = 0; 00022 virtual void ChangeLifeMine( PlayerNumber pn ) = 0; 00023 virtual void OnDancePointsChange( PlayerNumber pn ) = 0; // look in GAMESTATE and update the display 00024 virtual bool IsInDanger( PlayerNumber pn ) = 0; 00025 virtual bool IsHot( PlayerNumber pn ) = 0; 00026 virtual bool IsFailing( PlayerNumber pn ) = 0; 00027 virtual void OnTaunt() {}; 00028 }; 00029 00030 00031 00032 #endif 00033 00034 /* 00035 * (c) 2003 Chris Danford 00036 * All rights reserved. 00037 * 00038 * Permission is hereby granted, free of charge, to any person obtaining a 00039 * copy of this software and associated documentation files (the 00040 * "Software"), to deal in the Software without restriction, including 00041 * without limitation the rights to use, copy, modify, merge, publish, 00042 * distribute, and/or sell copies of the Software, and to permit persons to 00043 * whom the Software is furnished to do so, provided that the above 00044 * copyright notice(s) and this permission notice appear in all copies of 00045 * the Software and that both the above copyright notice(s) and this 00046 * permission notice appear in supporting documentation. 00047 * 00048 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00049 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00050 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00051 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00052 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00053 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00054 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00055 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00056 * PERFORMANCE OF THIS SOFTWARE. 00057 */