Files
itgmania212121/stepmania/src/LifeMeter.h
T

49 lines
1.3 KiB
C++
Raw Normal View History

#ifndef LIFEMETER_H
#define LIFEMETER_H
2002-05-20 08:59:37 +00:00
/*
-----------------------------------------------------------------------------
Class: LifeMeterBar
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"
class Song;
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; }
2002-07-28 20:28:37 +00:00
virtual void Update( float fDeltaTime ) { ActorFrame::Update(fDeltaTime); };
2002-05-20 08:59:37 +00:00
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;
virtual bool FailedEarlier() = 0;
2002-05-20 08:59:37 +00:00
protected:
2002-07-23 01:41:40 +00:00
PlayerNumber m_PlayerNumber;
2002-05-20 08:59:37 +00:00
};
#endif