Files
itgmania212121/stepmania/src/LifeMeter.h
T

63 lines
2.4 KiB
C++
Raw Normal View History

2004-06-08 00:08:04 +00:00
#ifndef LIFE_METER_H
#define LIFE_METER_H
2002-05-20 08:59:37 +00:00
#include "PlayerNumber.h"
2002-05-20 08:59:37 +00:00
#include "GameConstantsAndTypes.h"
2002-07-23 01:41:40 +00:00
#include "ActorFrame.h"
2002-05-20 08:59:37 +00:00
class LifeMeter : public ActorFrame
{
public:
2002-07-28 20:28:37 +00:00
LifeMeter() {};
2002-05-20 08:59:37 +00:00
virtual ~LifeMeter() {};
virtual void Load( PlayerNumber pn ) { m_PlayerNumber = pn; }
virtual void OnSongEnded() {};
/* Change life after receiving a tap note grade. This *is* called for
* the head of hold notes. */
2002-05-20 08:59:37 +00:00
virtual void ChangeLife( TapNoteScore score ) = 0;
/* Change life after receiving a hold note grade. tscore is the score
* received for the initial tap note. */
virtual void ChangeLife( HoldNoteScore score, TapNoteScore tscore ) = 0;
2003-11-11 07:36:28 +00:00
virtual void ChangeLifeMine() = 0;
2002-07-28 20:28:37 +00:00
virtual void OnDancePointsChange() = 0; // look in GAMESTATE and update the display
2003-11-03 18:24:13 +00:00
virtual bool IsInDanger() const = 0;
virtual bool IsHot() const = 0;
virtual bool IsFailing() const = 0;
2002-05-20 08:59:37 +00:00
2003-10-23 06:15:58 +00:00
virtual float GetLife() const { return 0; } // for cosmetic use only
virtual void UpdateNonstopLifebar(int cleared, int total, int ProgressiveLifebarDifficulty) = 0;
2002-05-20 08:59:37 +00:00
protected:
2003-06-30 18:08:27 +00:00
PlayerNumber m_PlayerNumber;
2002-05-20 08:59:37 +00:00
};
2003-06-30 18:08:27 +00:00
#endif
2004-06-08 00:08:04 +00:00
/*
* (c) 2001-2003 Chris Danford
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, and/or sell copies of the Software, and to permit persons to
* whom the Software is furnished to do so, provided that the above
* copyright notice(s) and this permission notice appear in all copies of
* the Software and that both the above copyright notice(s) and this
* permission notice appear in supporting documentation.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
* OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/