Files
itgmania212121/stepmania/src/LifeMeter.h
T

67 lines
2.1 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;
2002-07-28 20:28:37 +00:00
virtual void OnDancePointsChange() = 0; // look in GAMESTATE and update the display
2002-06-24 22:04:31 +00:00
virtual bool IsInDanger() = 0;
virtual bool IsHot() = 0;
2002-07-23 01:41:40 +00:00
virtual bool IsFailing() = 0;
2002-05-20 08:59:37 +00:00
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
class CombinedLifeMeter : public ActorFrame
{
public:
CombinedLifeMeter() {};
virtual ~CombinedLifeMeter() {};
virtual void OnSongEnded() {};
/* Change life after receiving a tap note grade. This *is* called for
* the head of hold notes. */
virtual void ChangeLife( PlayerNumber pn, TapNoteScore score ) = 0;
/* Change life after receiving a hold note grade. tscore is the score
* received for the initial tap note. */
virtual void ChangeLife( PlayerNumber pn, HoldNoteScore score, TapNoteScore tscore ) = 0;
virtual void OnDancePointsChange( PlayerNumber pn ) = 0; // look in GAMESTATE and update the display
virtual bool IsInDanger( PlayerNumber pn ) = 0;
virtual bool IsHot( PlayerNumber pn ) = 0;
virtual bool IsFailing( PlayerNumber pn ) = 0;
2003-07-10 11:47:45 +00:00
virtual void OnTaunt() {};
2003-06-30 18:08:27 +00:00
};
#endif