00001 #ifndef CombinedLifeMeterEnemy_H 00002 #define CombinedLifeMeterEnemy_H 00003 00004 #include "CombinedLifeMeter.h" 00005 #include "Sprite.h" 00006 00007 00008 class CombinedLifeMeterEnemy : public CombinedLifeMeter 00009 { 00010 public: 00011 CombinedLifeMeterEnemy(); 00012 00013 virtual void Update( float fDelta ); 00014 00015 enum Face { normal=0, taunt, attack, damage, defeated, NUM_FACES }; 00016 00017 virtual void ChangeLife( PlayerNumber pn, TapNoteScore score ) {}; 00018 virtual void ChangeLife( PlayerNumber pn, HoldNoteScore score, TapNoteScore tscore ) {}; 00019 virtual void OnDancePointsChange( PlayerNumber pn ) {}; 00020 virtual bool IsInDanger( PlayerNumber pn ) { return false; }; 00021 virtual bool IsHot( PlayerNumber pn ) { return false; }; 00022 virtual bool IsFailing( PlayerNumber pn ) { return false; }; 00023 virtual void OnTaunt(); 00024 00025 protected: 00026 void SetFace( Face face ); 00027 00028 Sprite m_sprHealthStream; 00029 Sprite m_sprHealthBackground; 00030 float m_fLastSeenHealthPercent; 00031 00032 Sprite m_sprFace; 00033 float m_fSecondsUntilReturnToNormalFace; 00034 00035 Sprite m_sprFrame; 00036 }; 00037 00038 00039 #endif 00040 00041 /* 00042 * (c) 2001-2003 Chris Danford 00043 * All rights reserved. 00044 * 00045 * Permission is hereby granted, free of charge, to any person obtaining a 00046 * copy of this software and associated documentation files (the 00047 * "Software"), to deal in the Software without restriction, including 00048 * without limitation the rights to use, copy, modify, merge, publish, 00049 * distribute, and/or sell copies of the Software, and to permit persons to 00050 * whom the Software is furnished to do so, provided that the above 00051 * copyright notice(s) and this permission notice appear in all copies of 00052 * the Software and that both the above copyright notice(s) and this 00053 * permission notice appear in supporting documentation. 00054 * 00055 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00056 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00057 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00058 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00059 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00060 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00061 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00062 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00063 * PERFORMANCE OF THIS SOFTWARE. 00064 */ 00065