Files
itgmania212121/stepmania/src/LifeMeter.h
T

48 lines
1.4 KiB
C++
Raw Normal View History

#ifndef LIFEMETER_H
#define LIFEMETER_H
2002-05-20 08:59:37 +00:00
/*
-----------------------------------------------------------------------------
2003-06-30 18:08:27 +00:00
Class: LifeMeter
2002-05-20 08:59:37 +00:00
Desc: A graphic displayed in the LifeMeterBar during Dancing.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
#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