SBSPSS/source/pickups/phealth.h

93 lines
1.8 KiB
C
Raw Normal View History

2001-02-20 23:53:35 +01:00
/*=========================================================================
phealth.h
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __PICKUPS_PHEALTH_H__
#define __PICKUPS_PHEALTH_H__
/*----------------------------------------------------------------------
Includes
-------- */
#ifndef __PICKUPS_PICKUP_H__
#include "pickups/pickup.h"
#endif
/* Std Lib
------- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
class CBaseHealthPickup : public CBasePickup
{
public:
virtual void init();
virtual void shutdown();
virtual void think(int _frames);
virtual void render();
virtual void collect(class CPlayer *_player);
protected:
virtual int getHealthPoints()=0;
virtual int getFrameNumber()=0;
private:
int m_sin;
};
class C100HealthPickup : public CBaseHealthPickup
{
protected:
virtual int getHealthPoints();
virtual int getFrameNumber();
};
class C50HealthPickup : public CBaseHealthPickup
{
protected:
virtual int getHealthPoints();
virtual int getFrameNumber();
};
class C25HealthPickup : public CBaseHealthPickup
{
protected:
virtual int getHealthPoints();
virtual int getFrameNumber();
};
/*----------------------------------------------------------------------
Globals
------- */
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __PICKUPS_PHEALTH_H__ */
/*===========================================================================
end */