2001-06-14 17:19:57 +02:00
|
|
|
dssadsadsadsda
|
|
|
|
|
|
|
|
|
|
|
|
|
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();
|
|
|
|
|
2001-04-02 23:37:20 +02:00
|
|
|
virtual DVECTOR getSizeForPlacement();
|
2001-02-20 23:53:35 +01:00
|
|
|
virtual void collect(class CPlayer *_player);
|
|
|
|
|
|
|
|
protected:
|
2001-02-21 23:33:17 +01:00
|
|
|
virtual void thinkPickup(int _frames);
|
|
|
|
virtual void renderPickup(DVECTOR *_pos);
|
|
|
|
|
2001-02-20 23:53:35 +01:00
|
|
|
virtual int getHealthPoints()=0;
|
|
|
|
virtual int getFrameNumber()=0;
|
|
|
|
|
|
|
|
private:
|
|
|
|
int m_sin;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2001-02-27 17:59:50 +01:00
|
|
|
class CLargeHealthPickup : public CBaseHealthPickup
|
2001-02-20 23:53:35 +01:00
|
|
|
{
|
|
|
|
protected:
|
|
|
|
virtual int getHealthPoints();
|
|
|
|
virtual int getFrameNumber();
|
|
|
|
};
|
|
|
|
|
2001-02-27 17:59:50 +01:00
|
|
|
class CMediumHealthPickup : public CBaseHealthPickup
|
2001-02-20 23:53:35 +01:00
|
|
|
{
|
|
|
|
protected:
|
|
|
|
virtual int getHealthPoints();
|
|
|
|
virtual int getFrameNumber();
|
|
|
|
};
|
|
|
|
|
2001-02-27 17:59:50 +01:00
|
|
|
class CSmallHealthPickup : public CBaseHealthPickup
|
2001-02-20 23:53:35 +01:00
|
|
|
{
|
|
|
|
protected:
|
|
|
|
virtual int getHealthPoints();
|
|
|
|
virtual int getFrameNumber();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Globals
|
|
|
|
------- */
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Functions
|
|
|
|
--------- */
|
|
|
|
|
|
|
|
/*---------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
#endif /* __PICKUPS_PHEALTH_H__ */
|
|
|
|
|
|
|
|
/*===========================================================================
|
|
|
|
end */
|