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;
|
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
|
|
|
|
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
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2002-11-16 08:07:38 +00:00
|
|
|
#endif
|