2002-11-16 08:07:38 +00:00
|
|
|
#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
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
2003-02-26 00:20:00 +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() {};
|
|
|
|
|
|
2002-09-04 03:49:08 +00:00
|
|
|
virtual void Load( PlayerNumber pn ) { m_PlayerNumber = pn; }
|
2003-01-24 02:43:07 +00:00
|
|
|
virtual void OnSongEnded() {};
|
2002-10-12 22:04:44 +00:00
|
|
|
/* 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;
|
2002-10-12 22:04:44 +00:00
|
|
|
/* 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
|
2003-07-30 17:01:04 +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
|
|
|
};
|
2002-11-16 08:07:38 +00:00
|
|
|
|
2003-06-30 18:08:27 +00:00
|
|
|
|
2002-11-16 08:07:38 +00:00
|
|
|
#endif
|